forked from bernhardfritz/pobfrontend
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create new build file that builds latest version
- Loading branch information
Showing
2 changed files
with
37 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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: macos-12 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: brew install make ninja | ||
- run: make tools | ||
- run: make clean | ||
- run: make | ||
- run: make sign | ||
- run: zip -r PathOfBuilding.zip PathOfBuilding.app | ||
# Based on https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter | ||
- id: get-version | ||
run: | | ||
version=$(sed -n 's/^.*number="\([0-9.]*\)".*$/\1/p' PathOfBuilding/manifest.xml) | ||
echo "VERSION=$version" >> "$GITHUB_OUTPUT" | ||
- name: Upload MacOS artifacts into Github | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
artifacts: "PathOfBuilding.zip" | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
allowUpdates: true | ||
tag: v${{ steps.get-version.outputs.VERSION }} | ||
if: github.ref == 'refs/heads/master' |
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