update maven build workflow

This commit is contained in:
dxfeng10
2021-04-25 10:38:02 +08:00
committed by GitHub
parent ec7db19436
commit 49041007d0

View File

@@ -33,8 +33,10 @@ jobs:
uses: actions/setup-java@v1 uses: actions/setup-java@v1
with: with:
java-version: 1.8 java-version: 1.8
- name: Build with Maven - name: Build Modules
run: mvn -B clean package --file pom.xml run: mvn -B clean package --file pom.xml
- name: Build Bootstrap
run: mvn -B clean package --file fizz-bootstrap/pom.xml
- uses: bhowell2/github-substring-action@v1.0.0 - uses: bhowell2/github-substring-action@v1.0.0
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
id: releaseVersion id: releaseVersion
@@ -59,4 +61,4 @@ jobs:
draft: true draft: true
files: ./fizz-gateway-community-${{ steps.releaseVersion.outputs.substring }}.zip files: ./fizz-gateway-community-${{ steps.releaseVersion.outputs.substring }}.zip
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}