Skip to content

Commit

Permalink
ci: auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
Master-Hash committed Feb 21, 2025
1 parent 3c518d4 commit 7ae5087
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,29 @@ jobs:
name: libewt-${{ matrix.job.feature }}-${{ matrix.job.target }}
path: |
target/${{ matrix.job.target }}/release/${{ matrix.job.bname }}
release:
name: Release
needs: build
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout source code
uses: actions/checkout@v4

- name: Download artifacts
uses: actions/download-artifact@v4
with:
path: download

- name: Create zip files
run: |
for f in download/*; do
7z a -tzip -mx=9 -r ${f}.zip ${f}/*
done
- name: Upload release
run: |
gh release create "${GITHUB_REF##*/}" download/*.zip -t "${GITHUB_REF##*/}" --generate-notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 7ae5087

Please sign in to comment.