fix: packwizignore #30
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: Release Pipeline | |
# credit to mc-modpack-kit for the template | |
on: | |
push: | |
branches: | |
- main | |
env: | |
pack-file: "pack.toml" | |
default-release-modrinth: "true" | |
name: 'create-prepare-to-dye' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/github-tag-action@v6.1 | |
with: | |
tag_prefix: '' | |
github_token: ${{ secrets.GH_TOKEN }} | |
- name: Install packwiz | |
uses: supplypike/setup-bin@v3 | |
with: | |
uri: "https://nightly.link/packwiz/packwiz/workflows/go/main/Linux%2064-bit%20x86.zip" | |
name: "packwiz" | |
version: "linux" | |
- name: Build Modrinth Modpack | |
run: | | |
mkdir export-dir | |
cp -R \ | |
CHANGELOG.md config defaultconfigs index.toml kubejs mods pack.toml \ | |
export-dir | |
cd export-dir && packwiz modrinth export | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_tag }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
token: ${{ secrets.GH_TOKEN }} | |
artifacts: | | |
export-dir/*.mrpack | |
# # --- Release | |
# - name: Release Modpack to Vendors | |
# uses: ./.github/actions/release | |
# with: | |
# modpack: ${{ matrix.modpack }} | |
# release-tag: ${{ steps.tag.outputs.tag }} | |
# loader: ${{ steps.parse.outputs.loader }} | |
# game-version: ${{ steps.parse.outputs.game-version }} | |
# upload-modrinth: ${{ steps.set-mod-vendors.outputs.modrinth }} | |
# upload-curse: ${{ steps.set-mod-vendors.outputs.curseforge }} | |
# MODRINTH_ID: ${{ secrets.MODRINTH_ID }} | |
# MODRINTH_TOKEN: ${{ secrets.MODRINTH_TOKEN }} | |
# CURSEFORGE_ID: ${{ secrets.CURSEFORGE_ID }} | |
# CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} | |
# if: | | |
# steps.release-please.outputs.releases_created && | |
# (steps.set-mod-vendors.outputs.modrinth || steps.set-mod-vendors.outputs.curseforge) |