Skip to content

Commit

Permalink
Attempt to fix publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
eggohito committed Feb 13, 2024
1 parent e5efe05 commit 81de4d5
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
name: publish
run-name: Publish ${{ github.ref }} to Modrinth and CurseForge
run-name: Publish ${{ github.ref_name }} to Modrinth and CurseForge

on: release
on:
workflow_dispatch:

release:
types:
- published

jobs:
build:
publish:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: Kir-Antipov/[email protected]
- name: Download release assets
run: gh release download ${{ github.ref_name }} --repo ${{ github.repository }} --pattern '*.jar' --dir 'build/libs/'
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release assets to Modrinth and CurseForge
uses: Kir-Antipov/[email protected]
with:
java: 17

Expand Down

0 comments on commit 81de4d5

Please sign in to comment.