cicd: update release from build pipeline
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Details
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2s
Details
parent
e124c864ee
commit
fdecbeb743
|
|
@ -27,10 +27,11 @@ jobs:
|
||||||
|
|
||||||
- name: Package build output
|
- name: Package build output
|
||||||
run: |
|
run: |
|
||||||
zip -r release.zip ./dist # Adjust the path to your build output directory
|
cd ./dist
|
||||||
|
zip -r ../release.zip . # Adjust the path to your build output directory
|
||||||
|
|
||||||
- name: Upload release asset
|
- name: Upload release asset
|
||||||
run: |
|
run: |
|
||||||
curl -X POST -H "Content-Type: application/zip" \
|
curl -X PATCH -H "Content-Type: application/zip" \
|
||||||
--data-binary @release.zip \
|
--data-binary @release.zip \
|
||||||
"${{ .GITEA_API_URL }}/repos/${{ .GITEA_REPO_OWNER }}/${{ .GITEA_REPO_NAME }}/releases/${{ .GITEA_RELEASE_ID }}/assets?name=release.zip"
|
"${{ .GITEA_API_URL }}/repos/${{ .GITEA_REPO_OWNER }}/${{ .GITEA_REPO_NAME }}/releases/${{ .GITEA_RELEASE_ID }}/assets?name=release.zip"
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue