Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.

Commit

Permalink
ci: update github actions [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
DevScyu committed Nov 3, 2022
1 parent 037207a commit 9bf5191
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 13 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
changelog: ${{ steps.changelog.outputs.changelog }}
build_number: ${{ steps.extract.outputs.build_number }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PRIVATE_TOKEN }}
Expand Down Expand Up @@ -55,14 +55,14 @@ jobs:
needs: [changelog] # Build needs the new version number
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3 # Download version information from changelog
with:
name: build

- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 8
Expand Down Expand Up @@ -118,9 +118,6 @@ jobs:
curseforge-id: 303451
curseforge-token: ${{ secrets.CF_API_TOKEN }}

github-tag: ${{ needs.changelog.outputs.tag }}
github-token: ${{ secrets.PRIVATE_TOKEN }}

files-primary: Wynntils-MC1.12.2-${{ needs.changelog.outputs.tag }}.jar
files-secondary: ""

Expand All @@ -132,3 +129,22 @@ jobs:
loaders: forge
game-versions: 1.12.2
java: 8


release-gh:
name: Release Github
runs-on: ubuntu-latest
needs: [build, changelog]
steps:
- uses: actions/download-artifact@v3
with:
name: build

- name: Create release
uses: softprops/action-gh-release@v1
with:
files: Wynntils-MC1.12.2-${{ needs.changelog.outputs.tag }}.jar
tag_name: ${{ needs.changelog.outputs.tag }}
prerelease: true
body: ${{ needs.changelog.outputs.clean_changelog }}
target_commitish: ${{ github.sha }}
29 changes: 22 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
clean_changelog: ${{ steps.changelog.outputs.clean_changelog }}
changelog: ${{ steps.changelog.outputs.changelog }}
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.PRIVATE_TOKEN }}
Expand Down Expand Up @@ -49,14 +49,14 @@ jobs:
needs: [changelog] # Build needs the new version number
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3 # Download version information from changelog
with:
name: build

- name: Set up JDK 8
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 8
Expand Down Expand Up @@ -95,7 +95,7 @@ jobs:


release:
name: Release
name: Release to Modrinth and CurseForge
runs-on: ubuntu-latest
needs: [artifact, changelog]
steps:
Expand All @@ -113,9 +113,6 @@ jobs:
curseforge-id: 303451
curseforge-token: ${{ secrets.CF_API_TOKEN }}

github-tag: ${{ needs.changelog.outputs.tag }}
github-token: ${{ secrets.PRIVATE_TOKEN }}

files-primary: Wynntils-MC1.12.2-${{ needs.changelog.outputs.tag }}.jar
files-secondary: ""

Expand All @@ -127,3 +124,21 @@ jobs:
loaders: forge
game-versions: 1.12.2
java: 8

release-gh:
name: Release Github
runs-on: ubuntu-latest
needs: [build, changelog]
steps:
- uses: actions/download-artifact@v3
with:
name: build

- name: Create release
uses: softprops/action-gh-release@v1
with:
files: Wynntils-MC1.12.2-${{ needs.changelog.outputs.tag }}.jar
tag_name: ${{ needs.changelog.outputs.tag }}
prerelease: true
body: ${{ needs.changelog.outputs.clean_changelog }}
target_commitish: ${{ github.sha }}

0 comments on commit 9bf5191

Please sign in to comment.