Skip to content

Commit

Permalink
correct action file
Browse files Browse the repository at this point in the history
  • Loading branch information
zomb-676 committed Aug 14, 2023
1 parent 8b6f132 commit 5b0866b
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,18 +29,17 @@ on:
type: boolean
default: true

permissions:
packages: write
actions: read
contents: read

jobs:
call-build-workflow:
permissions:
actions: read
uses: "./.github/workflows/build.yml"

publish:
needs: call-build-workflow
runs-on: ubuntu-latest
permissions:
contents: write

steps:
- name: Download a single artifact
Expand All @@ -50,6 +49,7 @@ jobs:

- name: Publish Github Release
uses: Kir-Antipov/mc-publish@v3.3
continue-on-error : true
if: ${{ inputs.github-release }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -64,6 +64,7 @@ jobs:

- name: Publish Modrinth Release
uses: Kir-Antipov/mc-publish@v3.3
continue-on-error : true
if: ${{ inputs.modrinth }}
with:
modrinth-id: rWlXIATK
Expand All @@ -78,6 +79,7 @@ jobs:

- name: Publish Curseforge Release
uses: Kir-Antipov/mc-publish@v3.3
continue-on-error : true
if: ${{ inputs.curseforge }}
with:
curseforge-id: 627824
Expand Down

0 comments on commit 5b0866b

Please sign in to comment.