mirror of
https://github.com/TibiNonEst/cauldron-dyeing.git
synced 2025-04-29 04:54:09 -05:00
Update github workflows
- Add release workflow - Add build numbers on action
This commit is contained in:
parent
38dd1d6ae7
commit
3c13e63e40
3 changed files with 55 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
|||
name: gradle-ci
|
||||
name: build-gradle
|
||||
|
||||
on: [ push, pull_request ]
|
||||
|
27
.github/workflows/build-release.yml
vendored
Normal file
27
.github/workflows/build-release.yml
vendored
Normal file
|
@ -0,0 +1,27 @@
|
|||
name: build-release
|
||||
|
||||
on:
|
||||
release:
|
||||
types:
|
||||
- published
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v2
|
||||
with:
|
||||
distribution: 'temurin'
|
||||
java-version: 17
|
||||
|
||||
- name: Build with Gradle
|
||||
run: ./gradlew build
|
||||
|
||||
- name: Upload build artifacts
|
||||
uses: AButler/upload-release-assets@v2.0
|
||||
with:
|
||||
files: 'build/libs/!(*-@(dev|sources)).jar'
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Add table
Add a link
Reference in a new issue