build #648
This file contains hidden or 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
| name: build | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| pull_request: | |
| branches: [ "master" ] | |
| schedule: | |
| - cron: '30 13 * * *' | |
| jobs: | |
| build: | |
| runs-on: macos-13 | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - run: brew install make ninja | |
| - run: make tools | |
| - run: make clean | |
| - run: make | |
| - 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' |