remove deploy, add publish to maven.yml
Some checks failed
Gitea Action Maven build / build (push) Failing after 6s

This commit is contained in:
Eduard Kuksa 2025-01-26 18:11:40 +07:00
parent 88002bae57
commit da885f5e2d

View File

@ -22,5 +22,12 @@ jobs:
cache: 'maven' cache: 'maven'
- name: Build with Maven - name: Build with Maven
run: mvn -B package --file pom.xml run: mvn -B package --file pom.xml
- name: Deploy to Gitea - name: Publish to Gitea Packages
run: mvn deploy uses: gitea/actions/publish-package@v1
with:
token: ${{ secrets.GITEATOKEN }}
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
package-name: spring-demo
package-version: ${{ github.sha }}
file: target/spring-demo.jar