Skip to content

Commit

Permalink
ci: fix dev build asset names (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Jun 23, 2023
1 parent 200ef15 commit adb8e79
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/nightly-build-intel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
id: get_version
run: |
ver=$(python update_version.py -g)
echo "version=${ver}" >> "$GITHUB_OUTPUT"
echo "version=${ver}dev" >> "$GITHUB_OUTPUT"
make_dist:
name: Make development distribution
Expand All @@ -73,11 +73,13 @@ jobs:
developmode: true
full: false
run_tests: false
version: "${{ needs.get_version.outputs.version }}dev"
version: ${{ needs.get_version.outputs.version }}

release:
name: Create release
needs: make_dist
needs:
- get_version
- make_dist
runs-on: ubuntu-22.04
defaults:
run:
Expand Down Expand Up @@ -124,6 +126,12 @@ jobs:
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

- name: Rename distributions
run: |
mv nightly/${{ needs.get_version.outputs.version }}_win64.zip nightly/win64.zip
mv nightly/${{ needs.get_version.outputs.version }}_linux.zip nightly/linux.zip
mv nightly/${{ needs.get_version.outputs.version }}_mac.zip nightly/mac.zip
# remove all but zip and pdf files
- name: Prune release assets
run: find nightly -type f ! -name '*.zip' ! -name '*.pdf' ! -name 'code.json' -delete
Expand Down

0 comments on commit adb8e79

Please sign in to comment.