-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
37 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,54 @@ | ||
name: Create Release | ||
|
||
on: create | ||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
build: | ||
strategy: | ||
matrix: | ||
# Use these Java versions | ||
java: [ | ||
17 | ||
] | ||
# and run on both Linux and Windows | ||
os: [ubuntu-20.04] | ||
runs-on: ${{ matrix.os }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout repository | ||
uses: actions/checkout@v2 | ||
- name: setup jdk ${{ matrix.java }} | ||
- name: setup jdk 17 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: ${{ matrix.java }} | ||
java-version: 17 | ||
- name: make gradle wrapper executable | ||
if: ${{ runner.os != 'Windows' }} | ||
run: chmod +x ./gradlecw | ||
- name: build | ||
run: ./gradlecw build | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: | | ||
FPFabric/build/libs/* | ||
FPForge/build/libs/* | ||
- name: Publish-Forge-Curseforge | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
curseforge-id: $curseforgeid$ | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
loaders: forge | ||
name: ${{github.ref_name}} - Forge | ||
version-type: beta | ||
files: '*Forge/build/libs/!(*-@(dev|sources|javadoc|all)).jar' | ||
- name: Publish-Forge-Modrinth | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: $modrinthid$ | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
loaders: forge | ||
name: ${{github.ref_name}} - Forge | ||
files: '*Forge/build/libs/!(*-@(dev|sources|javadoc|all)).jar' | ||
- name: Publish-Fabric | ||
uses: Kir-Antipov/[email protected] | ||
with: | ||
modrinth-id: $modrinthid$ | ||
modrinth-token: ${{ secrets.MODRINTH_TOKEN }} | ||
curseforge-id: $curseforgeid$ | ||
curseforge-token: ${{ secrets.CURSEFORGE_TOKEN }} | ||
loaders: fabric | ||
name: ${{github.ref_name}} - Fabric | ||
files: '*Fabric/build/libs/!(*-@(dev|sources|javadoc|all)).jar' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters