Continuous Integration + Announcement #17
Workflow file for this run
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: Continuous Integration + Announcement | |
| env: | |
| GH_PKG_URL: "https://maven.pkg.github.com/${{ github.repository }}" | |
| permissions: | |
| contents: write # For creating and pushing the tag | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags-ignore: | |
| - v* | |
| paths: | |
| - "gradle/*.versions.toml" | |
| - "core-api/**" | |
| - "neoforge-datagen/**" | |
| - "neoforge-main/**" | |
| jobs: | |
| vars: | |
| name: Get Variables | |
| runs-on: ubuntu-22.04 | |
| outputs: | |
| version: ${{steps.version.outputs.version}} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - name: Fetch Tags | |
| run: git fetch --tags | |
| - name: Version | |
| id: version | |
| uses: paulhatch/[email protected] | |
| with: | |
| change_path: "neoforge-main" | |
| version_format: "${major}.${minor}.${patch}" | |
| search_commit_body: true | |
| bump_each_commit: true | |
| datagen: | |
| needs: [vars] | |
| uses: ./.github/workflows/_datagen.yml | |
| secrets: inherit | |
| with: | |
| version: ${{ needs.vars.outputs.version }} | |
| tests: | |
| needs: [vars, datagen] | |
| uses: ./.github/workflows/_run-gametests.yml | |
| secrets: inherit | |
| with: | |
| version: ${{ needs.vars.outputs.version }} | |
| publish: | |
| needs: [vars, tests] | |
| uses: ./.github/workflows/_publish.yml | |
| secrets: inherit | |
| with: | |
| version: ${{ needs.vars.outputs.version }} | |
| create-tag: | |
| name: Create tag | |
| needs: [vars, publish] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Create tag | |
| uses: actions/github-script@v7 | |
| with: | |
| script: | | |
| github.rest.git.createRef({ | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| ref: 'refs/tags/releases/v${{ needs.vars.outputs.version }}', | |
| sha: context.sha | |
| }) | |
| announce: | |
| name: Discord Announcement | |
| needs: [ publish ] | |
| uses: ./.github/workflows/_announce-latest-build.yml | |
| secrets: inherit | |
| release-cf: | |
| name: Release Alpha on CurseForge | |
| needs: [ publish ] | |
| uses: ./.github/workflows/_release-cf-alpha.yml | |
| secrets: inherit |