.forgejo: push to generic repo rather than release
This commit is contained in:
parent
23b71670ed
commit
ff09a2b37c
1 changed files with 9 additions and 15 deletions
|
@ -33,23 +33,17 @@ jobs:
|
|||
with:
|
||||
name: tarball
|
||||
path: zotero-${{ inputs.ref_name }}.*
|
||||
upload-release:
|
||||
upload-tarball:
|
||||
runs-on: x86_64
|
||||
needs: [build-tarball]
|
||||
container:
|
||||
image: docker.io/node:20-bookworm
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 500
|
||||
ref: ${{ inputs.ref_name }}
|
||||
- uses: actions/forgejo-release@v2.3.0
|
||||
with:
|
||||
direction: upload
|
||||
url: https://api.ayakael.net
|
||||
repo: mirrors/zotero
|
||||
sha: f55d5c106785e0575f2d48abf34e4de252c4f301
|
||||
tag: ${{ inputs.ref_name }}
|
||||
verbose: true
|
||||
token: ${{ secrets.CODE_FORGEJO_TOKEN }}
|
||||
release-dir: ./
|
||||
- name: Environment setup
|
||||
run: apk add nodejs curl
|
||||
- name: Package download
|
||||
uses: forgejo/download-artifact@v3
|
||||
- name: Package deployment
|
||||
run: |
|
||||
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
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue