add deploy prepare
This commit is contained in:
parent
9239be814b
commit
ac8b7e9622
@ -22,6 +22,11 @@ jobs:
|
|||||||
cache: 'maven'
|
cache: 'maven'
|
||||||
- name: Build, Test and Package with Maven
|
- name: Build, Test and Package with Maven
|
||||||
run: mvn -B verify --file pom.xml -e
|
run: mvn -B verify --file pom.xml -e
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-artifact
|
||||||
|
path: target/*.jar
|
||||||
- name: Create Maven settings.xml
|
- name: Create Maven settings.xml
|
||||||
run: |
|
run: |
|
||||||
cat <<EOF > ~/.m2/settings.xml
|
cat <<EOF > ~/.m2/settings.xml
|
||||||
@ -39,3 +44,13 @@ jobs:
|
|||||||
run: sed -i "s/{owner}/${{ vars.OWNER }}/g" pom.xml
|
run: sed -i "s/{owner}/${{ vars.OWNER }}/g" pom.xml
|
||||||
- name: Deploy to Gitea Packages
|
- name: Deploy to Gitea Packages
|
||||||
run: mvn deploy
|
run: mvn deploy
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Download artifact
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: build-artifact
|
||||||
|
path: target
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user