try release

This commit is contained in:
KoonQi 2023-09-06 01:36:14 +08:00
parent 91a3135ce2
commit 54f589a12b

View file

@ -3,7 +3,7 @@ name: Build and Test
on:
push:
branches:
- '*'
- "*"
pull_request:
branches: [main]
@ -18,8 +18,8 @@ jobs:
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
java-version: '17'
distribution: 'adopt'
java-version: "17"
distribution: "adopt"
- name: Build with Maven
run: mvn clean package
@ -32,4 +32,15 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: build-artifacts
path: target/
path:
target/
# Create a release with the artifacts
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
with:
files: |
target/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}