Merge pull request #86 from Conquerix/release-please--branches--main-… #252
This file contains 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: Modpack Release | Pipeline | |
on: | |
push: | |
branches: | |
- main | |
env: | |
pack-file: 'pack.toml' | |
jobs: | |
release-please: | |
name: Handle Releases | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
# --- Release please | |
- name: Perform Release with Release Please | |
id: release-please | |
uses: google-github-actions/release-please-action@v3 | |
with: | |
release-type: simple | |
package-name: The-InBetween | |
prerelease: true | |
changelog-types: > | |
[{"type":"feat","section":"★ Features","hidden":false}, | |
{"type":"fix","section":"♻ Bug Fixes","hidden":false}, | |
{"type":"mod","section":"☀ Modpack Changes","hidden":false}, | |
{"type":"update","section":"⚘ Modpack Updates","hidden":false}, | |
{"type":"chore","section":"⛭ Miscellaneous","hidden":true}] | |
- name: Check Out Git Repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
# #### Following executed IF new release is triggered. | |
- name: Bump version | |
uses: ./.github/actions/bump-pack | |
with: | |
release-tag: ${{ steps.release-please.outputs.tag_name }} | |
if: ${{ steps.release-please.outputs.releases_created }} | |
# --- Build an release | |
- name: Build modpack | |
uses: ./.github/actions/build | |
with: | |
release-tag: ${{ steps.release-please.outputs.tag_name }} | |
if: ${{ steps.release-please.outputs.releases_created }} | |
- name: Release modpack to vendors | |
uses: ./.github/actions/release | |
with: | |
loader: "fabric" | |
game-version: "1.20.1" | |
MODRINTH-ID: ${{ secrets.MODRINTH_ID }} | |
MODRINTH-TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
if: ${{ steps.release-please.outputs.releases_created }} |