.forgejo: push to generic repo rather than release

This commit is contained in:
Antoine Martin 2024-08-12 01:32:43 -04:00
parent 23b71670ed
commit ff09a2b37c
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -33,23 +33,17 @@ jobs:
with: with:
name: tarball name: tarball
path: zotero-${{ inputs.ref_name }}.* path: zotero-${{ inputs.ref_name }}.*
upload-release: upload-tarball:
runs-on: x86_64 runs-on: x86_64
needs: [build-tarball] needs: [build-tarball]
container: container:
image: docker.io/node:20-bookworm image: docker.io/node:20-bookworm
steps: steps:
- uses: actions/checkout@v3 - name: Environment setup
with: run: apk add nodejs curl
fetch-depth: 500 - name: Package download
ref: ${{ inputs.ref_name }} uses: forgejo/download-artifact@v3
- uses: actions/forgejo-release@v2.3.0 - name: Package deployment
with: run: |
direction: upload curl --user forge: ${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz ${{ github.server_url }}/api/packages/zotero/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz
url: https://api.ayakael.net curl --user forge: ${{ secrets.CODE_FORGEJO_TOKEN }} --upload-file ./zotero-${{ inputs.ref_name }}.tar.gz.sha512sum ${{ github.server_url }}/api/packages/zotero/generic/zotero/${{ inputs.ref_name }}/zotero-${{ inputs.ref_name}}.tar.gz.sha512sum
repo: mirrors/zotero
sha: f55d5c106785e0575f2d48abf34e4de252c4f301
tag: ${{ inputs.ref_name }}
verbose: true
token: ${{ secrets.CODE_FORGEJO_TOKEN }}
release-dir: ./