Update make-release.yml
This commit is contained in:
7
.github/workflows/make-release.yml
vendored
7
.github/workflows/make-release.yml
vendored
@@ -18,29 +18,24 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Set up JDK 8
|
- name: Set up JDK 8
|
||||||
uses: actions/setup-java@v2
|
uses: actions/setup-java@v2
|
||||||
with:
|
with:
|
||||||
java-version: '8'
|
java-version: '8'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Set Version
|
- name: Set Version
|
||||||
uses: bluwy/substitute-string-action@v1
|
uses: bluwy/substitute-string-action@v1
|
||||||
with:
|
with:
|
||||||
_input-file: 'pom.xml'
|
_input-file: 'pom.xml'
|
||||||
_format-key: '>key<'
|
_format-key: '>key<'
|
||||||
Snapshot: ${{ inputs.version }}
|
Snapshot: ${{ inputs.version }}
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn --batch-mode --update-snapshots verify
|
run: mvn --batch-mode --update-snapshots verify
|
||||||
|
|
||||||
- name: Rename jar
|
- name: Rename jar
|
||||||
run: mv target/*-All.jar JMusicBot-${{ inputs.version }}.jar
|
run: mv target/*-All.jar JMusicBot-${{ inputs.version }}.jar
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
- uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
tag: ${{ inputs.version }}
|
tag: ${{ inputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user