Skip to content

Commit

Permalink
Merge pull request #66 from johodges/dev
Browse files Browse the repository at this point in the history
Add Release to Actions for Publishing Results
  • Loading branch information
johodges committed Aug 7, 2023
2 parents 9c5e444 + 1c08718 commit b9feb53
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/github-actions-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,37 @@ on:
push:
workflow_dispatch:
jobs:
DeleteRelease:
permissions: write-all
runs-on: ubuntu-latest
continue-on-error: true
env:
GH_TOKEN: ${{ github.token }}
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "Deleting release tag verify-${{ github.ref_name }}"
- run: |
gh release delete verify-${{ github.ref_name }} -y --cleanup-tag
CreateRelease:
permissions: write-all
runs-on: ubuntu-latest
continue-on-error: true
needs: DeleteRelease
env:
GH_TOKEN: ${{ github.token }}
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- name: Check out repository code
uses: actions/checkout@v3
- run: echo "Creating release tag verify-${{ github.ref_name }}"
- run: |
gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }}
Verification:
permissions: write-all
runs-on: ubuntu-latest
needs: CreateRelease
env:
QT_QPA_PLATFORM: offscreen
PATH: "/home/runner/FDS/FDS6/smvbin:/home/runner/FDS/FDS6/bin/INTEL/bin:/home/runner/FDS/FDS6/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo/binner/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/runner/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/runner/.dotnet/tools"
Expand Down Expand Up @@ -75,6 +104,16 @@ jobs:
mkdir -p tests/test_err
cp tests/*/output/*.png tests/test_out/
bash compare_images.sh
- name: Push results to release
run: |
cp verification/tests/*/output/*.fds verification/tests/test_out/
cp verification/tests/*/output/*.bingeom verification/tests/test_out/
cd verification/tests
tar -cvzf ubuntu.tar.gz test_out
gh release upload verify-${{ github.ref_name }} ubuntu.tar.gz --clobber
# gh release delete verify-${{ github.ref_name }} -y --cleanup-tag
# gh release create -n "verify ${{ github.ref_name }} branch" verify-${{ github.ref_name }} ubuntu.tar.gz
# gh release create ${{ github.ref }}-${{ runner.os }} data_out.tar.gz
- name: List files in the repository
shell: bash
run: |
Expand Down

0 comments on commit b9feb53

Please sign in to comment.