diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 8a006f5..b7766b5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,6 +11,15 @@ steps: - name: Checkout Resources uses: actions/checkout@v4 + + - name: Checkout M2 Repo + uses: actions/checkout@v4 + with: + repository: 'BookkeepersMC/m2' + path: './m2/' + ref: 'master' + token: ${{ secrets.GITHUB_TOKEN }} + - name: Setup Java uses: actions/setup-java@v4 with: @@ -27,18 +36,12 @@ CURSEFORGE_TOKEN: ${{ secrets.CURSEFORGE_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Checkout M2 Repo - uses: actions/checkout@v4 - with: - repository: 'BookkeepersMC/m2' - path: './m2/' - ref: 'master' - token: ${{ secrets.GITHUB_TOKEN }} + - name: Commit artifacts to m2 repo uses: EndBug/add-and-commit@v9.1.4 with: - add: 'net' + add: './home/runner/work/BetterBiomes/BetterBiomes/net/' default_author: github_actions cwd: "./m2/" message: "Publish Better Biomes"