Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavid04 committed Apr 28, 2024
1 parent 2755591 commit 5a3bb10
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
name: Build
name: build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{runner.os}}-gradle-${{hashFiles('build.gradle')}}
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: release
on:
release:
types: [published]
Expand All @@ -9,30 +9,30 @@ jobs:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Get Release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{github.token}}
- name: JDK 17
uses: actions/setup-java@v2
uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
- name: Cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{runner.os}}-gradle-${{hashFiles('build.gradle')}}
- name: Gradle Build
run: ./gradlew -Pversion=${{steps.get_release.outputs.tag_name}} build
- name: Publish
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{github.token}}
uses: Kir-Antipov/[email protected]
with:
upload_url: ${{steps.get_release.outputs.upload_url}}
asset_path: ./build/libs/phi-${{steps.get_release.outputs.tag_name}}.jar
asset_name: Phi-${{steps.get_release.outputs.tag_name}}.jar
asset_content_type: application/java-archive
curseforge-id: 476728
curseforge-token: ${{secrets.CURSEFORGE_API_KEY}}
modrinth-id: G6bswYcv
modrinth-token: ${{secrets.MODRINTH_API_KEY}}
github-token: ${{github.token}}
java: 17

0 comments on commit 5a3bb10

Please sign in to comment.