work?
This commit is contained in:
parent
f2d5f203c6
commit
fd45d8af02
@ -1,4 +1,4 @@
|
|||||||
name: Maven Build
|
name: Publish Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@ -7,9 +7,8 @@ on:
|
|||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Maven Build Job
|
publish:
|
||||||
build:
|
name: Publish Release
|
||||||
name: Maven Build
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: [ubuntu-latest]
|
arch: [ubuntu-latest]
|
||||||
@ -61,22 +60,11 @@ jobs:
|
|||||||
- name: Publish to Maven
|
- name: Publish to Maven
|
||||||
run: mvn deploy -Pgen-javadocs -B -Dstyle.color=always --update-snapshots -T6C -e
|
run: mvn deploy -Pgen-javadocs -B -Dstyle.color=always --update-snapshots -T6C -e
|
||||||
|
|
||||||
# Publish Job
|
|
||||||
publish:
|
|
||||||
name: Maven Build
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
arch: [ ubuntu-latest ]
|
|
||||||
java-version: [ 8 ]
|
|
||||||
maven-version: [ 3.9.4 ]
|
|
||||||
runs-on: ${{ matrix.arch }}
|
|
||||||
|
|
||||||
# Steps
|
|
||||||
steps:
|
|
||||||
# Generate changelog
|
# Generate changelog
|
||||||
- name: Generate Changelog
|
- name: Generate Changelog
|
||||||
id: changelog
|
id: changelog
|
||||||
uses: https://github.com/mathiasvr/command-output@v2.0.0
|
uses: https://github.com/mathiasvr/command-output@v2.0.0
|
||||||
|
if: ${{ github.ref.action == 'master' }}
|
||||||
with:
|
with:
|
||||||
run: |
|
run: |
|
||||||
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s --skip-unstable
|
npx conventional-changelog-cli -p angular -i CHANGELOG.md -s --skip-unstable
|
||||||
@ -87,6 +75,7 @@ jobs:
|
|||||||
# so we can use it later
|
# so we can use it later
|
||||||
- name: Extract Maven project version
|
- name: Extract Maven project version
|
||||||
shell: bash -l {0}
|
shell: bash -l {0}
|
||||||
|
if: ${{ github.ref.action == 'master' }}
|
||||||
run: |
|
run: |
|
||||||
RELEASE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
RELEASE_VERSION=$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec)
|
||||||
echo "Project version: $RELEASE_VERSION"
|
echo "Project version: $RELEASE_VERSION"
|
||||||
@ -96,6 +85,7 @@ jobs:
|
|||||||
- name: Publish Release
|
- name: Publish Release
|
||||||
id: publish-release
|
id: publish-release
|
||||||
uses: https://git.rainnny.club/Rainnny/release-action@main
|
uses: https://git.rainnny.club/Rainnny/release-action@main
|
||||||
|
if: ${{ github.ref.action == 'master' }}
|
||||||
with:
|
with:
|
||||||
api_key: ${{ secrets.RELEASE_ACCESS_TOKEN }}
|
api_key: ${{ secrets.RELEASE_ACCESS_TOKEN }}
|
||||||
tag: Feather-${{ env.RELEASE_VERSION }}
|
tag: Feather-${{ env.RELEASE_VERSION }}
|
Loading…
Reference in New Issue
Block a user