mirror of
https://github.com/YatopiaMC/Yatopia.git
synced 2025-01-16 05:01:54 +01:00
fixes
This commit is contained in:
parent
7345d4e062
commit
3df83f86af
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -26,22 +26,22 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Cancel Previous Runs
|
- name: Cancel Previous Runs
|
||||||
uses: styfle/cancel-workflow-action@0.4.1
|
uses: styfle/cancel-workflow-action@latest
|
||||||
with:
|
with:
|
||||||
access_token: ${{ github.token }}
|
access_token: ${{ github.token }}
|
||||||
- uses: actions/checkout@v2.2.0
|
- uses: actions/checkout@latest
|
||||||
- name: Set up JDK ${{ matrix.java }}
|
- name: Set up JDK ${{ matrix.java }}
|
||||||
uses: actions/setup-java@v1.3.0
|
uses: actions/setup-java@latest
|
||||||
with:
|
with:
|
||||||
java-version: ${{ matrix.java }}
|
java-version: ${{ matrix.java }}
|
||||||
- name: Pull Maven Cache
|
- name: Pull Maven Cache
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@latest
|
||||||
id: maven-cache
|
id: maven-cache
|
||||||
with:
|
with:
|
||||||
path: ~/.m2/repository
|
path: ~/.m2/repository
|
||||||
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
|
||||||
restore-keys: ${{ runner.os }}-maven-
|
restore-keys: ${{ runner.os }}-maven-
|
||||||
- uses: s4u/maven-settings-action@v2.1.0
|
- uses: s4u/maven-settings-action@latest
|
||||||
name: Use ${{ matrix.java }} as the java target
|
name: Use ${{ matrix.java }} as the java target
|
||||||
with:
|
with:
|
||||||
properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]'
|
properties: '[{"maven.compiler.target": "${{ matrix.java }}"}]'
|
||||||
@ -61,25 +61,25 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
./yapfa full
|
./yapfa full
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v2.0.1
|
uses: actions/upload-artifact@latest
|
||||||
with:
|
with:
|
||||||
name: YAPFA-${{ matrix.java }}--${{ github.ref }}
|
name: YAPFA-${{ matrix.java }}--${{ github.ref }}
|
||||||
path: target/YAPFA-1.16.1-paperclip.jar
|
path: target/YAPFA-1.16.1-paperclip.jar
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@latest
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
release_name: YAPFA Release 1.16.1 Java ${{ matrix.java }--${{ github.ref }}
|
release_name: YAPFA Release 1.16.1 Java ${{ matrix.java } ${{ github.ref }}
|
||||||
body: |
|
body: |
|
||||||
This an an automated release!
|
This an an automated release!
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- name: Upload Release Asset
|
- name: Upload Release Asset
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@latest
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
|
Loading…
Reference in New Issue
Block a user