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