From dad81d739f504c5e186e745845faa1294e517054 Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 26 Jan 2025 18:19:39 +0700 Subject: [PATCH] add publish 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..85877e0 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: ${{ secrets.GITEATOKEN }} + 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