Skip to content

Commit

Permalink
Updated workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed May 14, 2023
1 parent 97cbd46 commit 1cbd4da
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: actions/checkout@v3

- name: "Set up JDK"
uses: actions/setup-java@v3.3.0
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/checkout@v3

- name: "Set up JDK"
uses: actions/setup-java@v3.6.0
uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
Expand All @@ -45,7 +45,7 @@ jobs:
run: ./gradlew clean build --no-daemon --refresh-dependencies --stacktrace

- name: "Capture build artifacts"
uses: actions/upload-artifact@v3.1.0
uses: actions/upload-artifact@v3
with:
name: "friends-and-foes"
path: |
Expand All @@ -62,12 +62,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish license to GitHub"
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v2
with:
files: 'LICENSE.txt'
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -80,12 +80,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Fabric to GitHub"
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v2
with:
files: fabric/build/libs/friendsandfoes-fabric-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -98,12 +98,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Fabric to CurseForge"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
curseforge-id: 551364
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
Expand All @@ -128,12 +128,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Fabric to Modrinth"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
modrinth-id: POQ2i9zu
modrinth-featured: true
Expand All @@ -160,12 +160,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Forge to GitHub"
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v2
with:
files: forge/build/libs/friendsandfoes-forge-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -178,12 +178,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Forge to CurseForge"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
curseforge-id: 602059
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
Expand All @@ -207,12 +207,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Forge to Modrinth"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
modrinth-id: BOCJKD49
modrinth-featured: true
Expand All @@ -239,12 +239,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Quilt to GitHub"
uses: AButler/upload-release-assets@v2.0
uses: AButler/upload-release-assets@v2
with:
files: quilt/build/libs/friendsandfoes-quilt-${{ github.ref_name }}.jar
repo-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -257,12 +257,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Quilt to CurseForge"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
curseforge-id: 628248
curseforge-token: ${{ secrets.CURSEFORGE_RELEASE_TOKEN }}
Expand All @@ -287,12 +287,12 @@ jobs:

steps:
- name: "Download artifacts"
uses: actions/download-artifact@v3.0.0
uses: actions/download-artifact@v3
with:
name: "friends-and-foes"

- name: "Publish Quilt to Modrinth"
uses: Kir-Antipov/mc-publish@v3.0
uses: Kir-Antipov/mc-publish@v3
with:
modrinth-id: NxP9xmhw
modrinth-featured: true
Expand Down

0 comments on commit 1cbd4da

Please sign in to comment.