Publish to CurseForge #18
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: Publish to CurseForge | |
| #on: | |
| # push: | |
| # tags: | |
| # - '**' | |
| # branches: [ master ] | |
| # pull_request: | |
| # tags: | |
| # - '**' | |
| # branches: [ master ] | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| release-type: | |
| description: alpha, beta, or release | |
| default: release | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| env: | |
| RELEASE_TYPE: ${{ github.event.inputs.release-type }} | |
| CURSEFORGE_API_TOKEN: ${{ secrets.CURSEFORGE_API_TOKEN }} | |
| CURSEFORGE_PROJECT_ID: ${{ secrets.CURSEFORGE_PROJECT_ID }} | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: toolchain | |
| run: | | |
| which jq > /dev/null || sudo apt-get -y install jq | |
| - name: archive | |
| run: make archive | |
| - name: upload_curseforge | |
| run: make upload_curseforge | |
| # TODO parse upload status | |
| # TODO fail on redundant version + release type combo? | |
| # TODO or overwrite redundant version + release type combo? | |
| # TODO or auto subminor version bump? | |
| # TODO run on push of new tag | |