Skip to content

Commit

Permalink
ready 4 prod workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EwyBoy committed Mar 11, 2024
1 parent 60b1880 commit f71016c
Showing 1 changed file with 7 additions and 40 deletions.
47 changes: 7 additions & 40 deletions .github/workflows/build_&_deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: build & deploy

on: [ push, pull_request ]
on:
release:
types:
- published

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [ forge, neoforge, fabric ]
platform: [forge, neoforge, fabric]

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -38,7 +41,7 @@ jobs:
path: ${{ matrix.platform }}/build/libs

- name: Deploy to CurseForge, Modrinth, or GitHub Releases
if: matrix.platform == 'forge'
if: matrix.platform == 'forge' || matrix.platform == 'neoforge' || matrix.platform == 'fabric'
uses: Kir-Antipov/mc-publish@v3.3
with:
curseforge-id: world-stripper
Expand All @@ -51,42 +54,6 @@ jobs:
changelog: ${{ steps.get-changelog.outputs.changelog }}

name: ""
loaders: forge
game-versions: "1.20.4"
release-type: release

- name: Deploy to CurseForge, Modrinth, or GitHub Releases (for neoforge)
if: matrix.platform == 'neoforge'
uses: Kir-Antipov/mc-publish@v3.3
with:
curseforge-id: world-stripper
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

modrinth-id: world-stripper
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}
changelog: ${{ steps.get-changelog.outputs.changelog }}

name: ""
loaders: neoforge
game-versions: "1.20.4"
release-type: release

- name: Deploy to CurseForge, Modrinth, or GitHub Releases (for fabric)
if: matrix.platform == 'fabric'
uses: Kir-Antipov/mc-publish@v3.3
with:
curseforge-id: world-stripper
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }}

modrinth-id: world-stripper
modrinth-token: ${{ secrets.MODRINTH_TOKEN }}

github-token: ${{ secrets.GITHUB_TOKEN }}
changelog: ${{ steps.get-changelog.outputs.changelog }}

name: ""
loaders: fabric
loaders: ${{ matrix.platform }}
game-versions: "1.20.4"
release-type: release

0 comments on commit f71016c

Please sign in to comment.