ci: update ci workflow #1
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
| # Copy this file to .github/workflows/release.yaml in your mod repo | |
| # Then run: uv run setup.py (from mod-release-workflow repo) | |
| name: Release | |
| concurrency: release-pipeline | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| manual_bump: | |
| description: 'Override bump (patch, minor, major)' | |
| default: 'patch' | |
| type: choice | |
| options: [patch, minor, major] | |
| jobs: | |
| release: | |
| uses: game-design-driven/mod-release-workflow/.github/workflows/mod-release.yaml@main | |
| with: | |
| # Required - mods.toml must define [mc-publish] keys | |
| # modrinth, curseforge, loader, mc_version, modrinth_slug, curseforge_slug | |
| java_version: "17" | |
| # Optional - modpack downstream PR | |
| target_modpack_repo: ${{ vars.TARGET_MODPACK_REPO }} | |
| enable_modrinth_sync: ${{ vars.ENABLE_MODRINTH_SYNC == 'true' }} | |
| enable_curseforge_sync: ${{ vars.ENABLE_CURSEFORGE_SYNC == 'true' }} | |
| curseforge_modpack_path: "./curseforge" | |
| # Bump type (from workflow_dispatch or default) | |
| manual_bump: ${{ inputs.manual_bump || 'patch' }} | |
| secrets: | |
| GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
| MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
| CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} |