Create Release #6
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: Create Release | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| tag_name: | |
| description: 'Tag name' | |
| required: true | |
| type: string | |
| env: | |
| OUTPUT_NAME: Satchel | |
| BUILD_PROJECT: package.project.json | |
| permissions: | |
| contents: write | |
| discussions: write | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Rokit | |
| uses: CompeyDev/setup-rokit@v0.1.2 | |
| - name: Setup Wally | |
| run: wally install | |
| - name: Build using Rojo | |
| run: | | |
| mkdir builds | |
| rojo build --output builds/$OUTPUT_NAME.rbxm $BUILD_PROJECT | |
| rojo build --output builds/$OUTPUT_NAME.rbxmx $BUILD_PROJECT | |
| - name: Archive build files | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: release-file-builds | |
| path: builds/ | |
| if-no-files-found: error | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Setup Rokit | |
| uses: CompeyDev/setup-rokit@v0.1.2 | |
| - name: Setup Wally | |
| env: | |
| WALLY_AUTH_TOKEN: ${{ secrets.WALLY_AUTH_TOKEN }} | |
| run: | | |
| wally login --token "$WALLY_AUTH_TOKEN" | |
| wally install | |
| - name: Download build files | |
| uses: actions/download-artifact@v5 | |
| with: | |
| name: release-file-builds | |
| path: builds/ | |
| - name: Create Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: builds/* | |
| generate_release_notes: true | |
| tag_name: ${{ inputs.tag_name }} | |
| draft: true | |
| - name: Publish to Wally | |
| run: wally publish |