From 51ba77abaf33d545d581d303844f6445c69845ed Mon Sep 17 00:00:00 2001 From: Eduard Kuksa Date: Sun, 26 Jan 2025 18:31:28 +0700 Subject: [PATCH] add upload artifact to action --- .gitea/workflows/maven.yml | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/maven.yml b/.gitea/workflows/maven.yml index 0e29c5e..1a9ab5c 100644 --- a/.gitea/workflows/maven.yml +++ b/.gitea/workflows/maven.yml @@ -22,12 +22,19 @@ 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 + - name: Upload artifact + uses: actions/upload-artifact@v3 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 + name: spring-demo + path: target/spring-demo.jar + +# publish: +# - name: Publish to Gitea Packages +# uses: gitea/actions/publish-package@v1 +# with: +# token: ${{ secrets.GITEA_TOKEN }} +# owner: ${{ github.repository_owner }} +# repo: ${{ github.event.repository.name }} +# package-name: spring-demo +# package-version: ${{ github.sha }} +# file: target/spring-demo.jar \ No newline at end of file