mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2024-12-29 12:38:01 +01:00
Update build.yml
This commit is contained in:
parent
bbb74c9128
commit
7f1d56135f
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -26,12 +26,12 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: Cancel Previous Runs
|
||||
uses: styfle/cancel-workflow-action@0.4.1
|
||||
uses: styfle/cancel-workflow-action@0
|
||||
with:
|
||||
access_token: ${{ github.token }}
|
||||
- uses: actions/checkout@v2.3.1
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up JDK ${{ matrix.java }}
|
||||
uses: actions/setup-java@v1.3.0
|
||||
uses: actions/setup-java@v1
|
||||
with:
|
||||
java-version: ${{ matrix.java }}
|
||||
- name: Pull Maven Cache
|
||||
@ -41,7 +41,7 @@ jobs:
|
||||
path: ~/.m2/repository
|
||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||
restore-keys: ${{ runner.os }}-maven-
|
||||
- uses: s4u/maven-settings-action@v2.1.0
|
||||
- uses: s4u/maven-settings-action@v2
|
||||
name: Use ${{ matrix.java }} as the java target
|
||||
with:
|
||||
properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]'
|
||||
@ -61,13 +61,13 @@ jobs:
|
||||
run: |
|
||||
./yapfa full
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@2.1.0
|
||||
uses: actions/upload-artifact@2
|
||||
with:
|
||||
name: YAPFA-${{ matrix.java }}--${{ github.ref }}
|
||||
name: YAPFA-${{ matrix.java }}-${{ github.ref }}
|
||||
path: target/YAPFA-1.16.1-paperclip.jar
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1.1.2
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||
with:
|
||||
@ -79,7 +79,7 @@ jobs:
|
||||
prerelease: false
|
||||
- name: Upload Release Asset
|
||||
id: upload-release-asset
|
||||
uses: actions/upload-release-asset@v1.0.2
|
||||
uses: actions/upload-release-asset@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user