add deploy prepare
All checks were successful
Gitea Action Maven build / build (push) Successful in 48s
Gitea Action Maven build / deploy (push) Successful in 9s

This commit is contained in:
Eduard Kuksa 2025-02-02 16:48:12 +07:00
parent 9239be814b
commit ac8b7e9622

View File

@ -22,6 +22,11 @@ jobs:
cache: 'maven'
- name: Build, Test and Package with Maven
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
run: |
cat <<EOF > ~/.m2/settings.xml
@ -39,3 +44,13 @@ jobs:
run: sed -i "s/{owner}/${{ vars.OWNER }}/g" pom.xml
- name: Deploy to Gitea Packages
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