Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEpicBlock committed Feb 9, 2024
1 parent 8c7e5aa commit bfe3e34
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: release

on:
release:
types:
- published

jobs:
github-release:
runs-on: ubuntu-latest
steps:
- name: Cache
uses: actions/cache@v2
with:
path: |
~/.gradle/loom-cache
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
gradle-
- name: Checkout repository
uses: actions/checkout@v2

- name: Setup JDK 17
uses: actions/setup-java@v1
with:
java-version: 17

- name: Ensure gradlew is executable
run: chmod +x gradlew

- name: Build mod
run: ./gradlew build

- name: Upload GitHub release
uses: AButler/[email protected]
with:
files: 'build/libs/*.jar;!build/libs/*-sources.jar;!build/libs/*-dev.jar'
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bfe3e34

Please sign in to comment.