add upload artifact to action
Some checks failed
Gitea Action Maven build / build (push) Failing after 2m29s

This commit is contained in:
Eduard Kuksa 2025-01-26 18:31:28 +07:00
parent f23e9eb4b0
commit 51ba77abaf

View File

@ -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
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