Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Protonull committed Jul 13, 2024
1 parent 77650eb commit a4e65ee
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cache: "gradle"

- name: "Compiling CivVoxelMap"
run: "./gradlew build --no-daemon"
run: "./gradlew build"

- uses: "marvinpinto/action-automatic-releases@latest"
with:
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: "CivVoxelMap Release Gradle CI"

on:
release:
types: [published]

permissions:
contents: write

jobs:
release:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"

- name: "Set up JDK 17"
uses: "actions/setup-java@v3"
with:
java-version: 17
distribution: "corretto"
cache: "gradle"

- name: "Compiling CivVoxelMap"
run: "./gradlew build"

- name: "Publishing CivVoxelMap"
run: |
gh release upload ${{ github.event.release.tag_name }} "LICENCE" --clobber
for file in $(find "dist/" -maxdepth 1 -type f -name "*.jar"); do
echo "Uploading $file"
gh release upload ${{ github.event.release.tag_name }} "$file" --clobber
done
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a4e65ee

Please sign in to comment.