Skip to content

Commit

Permalink
GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperIceCN committed Jan 23, 2023
1 parent 12dd4cf commit 77f06bb
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Maven build and release

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Get Time
id: time
uses: nanzm/get-time-action@v1.1
with:
timeZone: 8
format: 'YYYY_MM_DD_HH_mm_ss'
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/heads/master')
with:
files: |
FrostRender/target/FrostRenderer-*-shaded.jar
FrostSight-Desktop/target/FrostSight-Desktop-*-shaded.jar
tag_name: ${{ steps.time.outputs.time }}

0 comments on commit 77f06bb

Please sign in to comment.