From 252807be2cbc243d3bc7e821406f2b9f830e647d Mon Sep 17 00:00:00 2001 From: edoapra Date: Wed, 21 Aug 2024 16:26:12 -0700 Subject: [PATCH] action for generating release tarballs --- .github/workflows/nwchem_releasetar.yaml | 33 ++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/nwchem_releasetar.yaml diff --git a/.github/workflows/nwchem_releasetar.yaml b/.github/workflows/nwchem_releasetar.yaml new file mode 100644 index 0000000000..2c910021b0 --- /dev/null +++ b/.github/workflows/nwchem_releasetar.yaml @@ -0,0 +1,33 @@ +name: NWChem_Release_Tar + +on: + push: + paths-ignore: + - .gitlab-ci.yml + repository_dispatch: + types: [backend_automation] + workflow_dispatch: +jobs: + do_tar: + runs-on: ubuntu-latest + steps: + - name: install pkg + run: | + sudo apt-get install -y curl make perl bash bzip2 tar gzip + - name: grab script + run: | + curl -LJO https://raw.githubusercontent.com/$GITHUB_REPOSITORY_OWNER/nwchem/$GITHUB_REF_NAME/contrib/git.nwchem/dotar_release.sh + chmod +x ./dotar_release.sh + - name: run script + run: | + ./dotar_release.sh + ls -Rlrt + - name: generate tempdir name + run: | + echo "tmpdir_name=temp.$(date +%Y%m%d)" >> $GITHUB_ENV + ls -Rlrt ${{ env.tmpdir_name }} + - name: Upload artifacts + uses: actions/upload-artifact@v4 + with: + name: nwchem-tarball + path: ${{ env.tmpdir_name }}