add publish with token to action
Some checks failed
Gitea Action Maven build / build (push) Failing after 5s

This commit is contained in:
Eduard Kuksa 2025-01-26 18:29:17 +07:00
parent e855d7c583
commit f23e9eb4b0

View File

@ -22,3 +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: Publish to Gitea Packages
uses: gitea/actions/publish-package@v1
with:
token: c0e0d748a36706d620aeb402377a221504af0479
owner: ${{ github.repository_owner }}
repo: ${{ github.event.repository.name }}
package-name: spring-demo
package-version: ${{ github.sha }}
file: target/your-artifact.jar