From f23e9eb4b07c6f2dac95afe93994464d5e69385a Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 26 Jan 2025 18:29:17 +0700 Subject: [PATCH] add publish with token to action --- .gitea/workflows/maven.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.gitea/workflows/maven.yml b/.gitea/workflows/maven.yml index aa67638..0e29c5e 100644 --- a/.gitea/workflows/maven.yml +++ b/.gitea/workflows/maven.yml @@ -22,3 +22,12 @@ jobs: cache: 'maven' - name: Build with Maven 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 \ No newline at end of file