Skip to content

Commit

Permalink
only create release once
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-wes committed Nov 16, 2024
1 parent cc429d4 commit 650f257
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/compile-and-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ jobs:
matrix:
os: [windows, darwin, linux]
steps:
- name: Download Artifacts # FIXME: currently downloads all artifacts redundantly for each OS
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts
Expand All @@ -171,15 +171,28 @@ jobs:
name: ${{env.LIBNAME}}-${{ matrix.os }}
path: ${{env.LIBNAME}}

- name: Create Zip for Release
if: startsWith(github.ref, 'refs/tags/v')
run: zip -r ${{env.LIBSLUG}}-${{ matrix.os }}.zip ${{env.LIBNAME}}
create_release:
runs-on: ubuntu-latest
needs: package_and_release
if: startsWith(github.ref, 'refs/tags/v')
permissions:
contents: write
steps:
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: Create Zip Files
run: |
for os in windows darwin linux; do
zip -r ${{env.LIBSLUG}}-${os}.zip artifacts/${{env.LIBNAME}}-${os}
done
- name: Add Zip to Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v2
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: ${{env.LIBSLUG}}-${{ matrix.os }}.zip
files: ${{env.LIBSLUG}}-*.zip

deken_check_and_upload:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 650f257

Please sign in to comment.