Skip to content

Commit

Permalink
[ci] Add release to workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioginer committed Feb 5, 2024
1 parent ee4cd01 commit e773af1
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ jobs:
strategy:
matrix:
platform:
- { name: Linux GCC }
- { name: Windows MINGW, make_opts: PLATFORM=NT CROSS_COMPILE=x86_64-w64-mingw32- }
- { name: linux_gcc }
- { name: windows_mingw, make_opts: PLATFORM=NT CROSS_COMPILE=x86_64-w64-mingw32- }

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -62,3 +62,24 @@ jobs:
with:
name: geometry-win32-x86_64
path: dist/

release:

runs-on: ubuntu-latest
needs: [jobs, win32-build-x86_64-geometry]
if: startsWith(github.ref, 'refs/tags/v')
steps:
-name: Download artifacts
uses: actions/[email protected]
-name: Create release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Switchres ${GITHUB_REF#refs/*/}
draft: true
prerelease: false
files: |
./switchres-linux_gcc-x86_64/*.zip
./switchres-windows_mingw/*.zip
./geometry-win32-x86_64/*.zip

0 comments on commit e773af1

Please sign in to comment.