Release the version #9
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: Release the version | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| build: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: Windows | |
| os: windows-latest | |
| - name: macOS | |
| os: macos-latest | |
| - name: iOS | |
| os: macos-latest | |
| target: iOS | |
| - name: Android32 | |
| os: ubuntu-latest | |
| target: Android32 | |
| - name: Android64 | |
| os: ubuntu-latest | |
| target: Android64 | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Build the mod | |
| uses: geode-sdk/build-geode-mod@main | |
| with: | |
| combine: true | |
| export-pdb: true | |
| export-symbols: true | |
| target: ${{ matrix.config.target }} | |
| build-config: ${{ matrix.config.name == 'Windows' && 'RelWithDebInfo' || 'Release' }} | |
| package: | |
| name: Package builds | |
| runs-on: ubuntu-latest | |
| needs: ['build'] | |
| steps: | |
| - uses: geode-sdk/build-geode-mod/combine@main | |
| id: build | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: Build Output | |
| path: ${{ steps.build.outputs.build-output }} | |
| - uses: actions/checkout@v6 | |
| - name: Get version | |
| id: version | |
| run: | | |
| VERSION=$(jq -r '.version' mod.json) | |
| echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| - name: Create GitHub release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| name: ${{ steps.version.outputs.version }} | |
| tag_name: ${{ steps.version.outputs.version }} | |
| files: | | |
| ${{ steps.build.outputs.build-output }}/*.geode | |
| ${{ steps.build.outputs.build-output }}/*.pdb | |
| ${{ steps.build.outputs.build-output }}/*.sym |