patcher: support for custom separators #208
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: | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/ps2homebrew/ps2homebrew:main | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Fetch full clone | |
| run: | | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| git fetch --prune --unshallow | |
| - name: Compile project | |
| id: make | |
| env: | |
| KELFSERVER_API_ADDRESS: ${{ secrets.KELFSERVER_API_ADDRESS }} | |
| KELFSERVER_API_KEY: ${{ secrets.KELFSERVER_API_KEY }} | |
| run: | | |
| make | |
| - name: Upload artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: steps.make.outcome == 'success' | |
| with: | |
| name: artifacts | |
| path: | | |
| release/** | |
| release: | |
| needs: [build] | |
| runs-on: ubuntu-latest | |
| permissions: write-all | |
| if: startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Fetch full clone | |
| run: | | |
| git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| git fetch --prune --unshallow | |
| - name: Get git describe | |
| run: | | |
| echo "GIT_VERSION=$(git describe --always --dirty --tags --exclude nightly)" >> $GITHUB_ENV | |
| - name: Download all artifacts | |
| uses: actions/download-artifact@v4 | |
| - name: Prepare release archive | |
| run: | | |
| cd artifacts | |
| zip -r ../osdmenu-${{ env.GIT_VERSION }}.zip ./* | |
| - uses: "marvinpinto/action-automatic-releases@latest" | |
| if: github.ref == 'refs/heads/main' | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "nightly" | |
| prerelease: true | |
| title: "Nightly build" | |
| files: | | |
| osdmenu-${{ env.GIT_VERSION }}.zip | |
| - uses: "marvinpinto/action-automatic-releases@latest" | |
| if: startsWith(github.ref, 'refs/tags/v') | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| draft: true | |
| files: | | |
| osdmenu-${{ env.GIT_VERSION }}.zip |