Skip to content

Update upload-artifact action to version v4 #26

Update upload-artifact action to version v4

Update upload-artifact action to version v4 #26

Workflow file for this run

name: QuickShopForm 自动构建
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
if: contains(github.event.head_commit.message, '[构建跳过]') == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn package --file pom.xml
- name: Archive artifacts
uses: actions/upload-artifact@v4
if: success()
with:
name: QuickShopForm
path: target/QuickShopForm.jar
- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@v1.2.1
if: success()
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "dev"
prerelease: false
title: "QuickShopForm 自动构建版本"
files: |
target/QuickShopForm.jar