-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from Miepee/master
Automatically create releases
- Loading branch information
Showing
2 changed files
with
33 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,9 @@ name: Build optimized | |
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
linux: | ||
|
@@ -44,3 +47,32 @@ jobs: | |
with: | ||
name: macos-m1-gui.zip | ||
path: ./flips | ||
|
||
|
||
create-release: | ||
runs-on: ubuntu-latest | ||
needs: [linux, windows, macos] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Download binaries | ||
uses: actions/download-artifact@v4 | ||
with: | ||
path: builds/ | ||
- name: Find Flips version | ||
id: flips_version | ||
run: echo version=$(git rev-list --count master) >> $GITHUB_OUTPUT | ||
- name: Create zips | ||
run: | | ||
zip -9 ./flips-linux.zip ./builds/linux-x64-gui.zip/flips | ||
zip -9 ./flips-windows.zip ./builds/windows-x64-gui.zip/flips.exe | ||
#zip -9 ./flips-macos.zip ./builds/macos-m1-gui.zip/flips | ||
- name: Upload GitHub Release | ||
uses: svenstaro/[email protected] | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: flips-*.zip | ||
file_glob: true | ||
tag: v${{ steps.flips_version.outputs.version }} | ||
body: "A release of commit ${{ github.sha }}." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters