.forgejo: add release job

This commit is contained in:
Antoine Martin 2024-08-12 00:07:17 -04:00
parent d867e78336
commit 1ecffe6156
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -11,7 +11,7 @@ jobs:
name: Build tarball w/ submodules
runs-on: x86_64
container:
image: alpinelinux/alpine-gitlab-ci:latest
image: alpine:latest
env:
CI_PROJECT_NAME: zotero
steps:
@ -35,3 +35,22 @@ jobs:
with:
name: tarball
path: zotero-${{ inputs.ref_name }}.*
upload-release:
runs-on: x86_64
container:
imagine: alpine:latest
steps:
- name: Environment setup
run: apk add nodejs
- uses: actions/checkout@v3
with:
fetch-depth: 500
ref: ${{ inputs.ref_name }}
- uses: actions/forgejo-release@v1
with:
direction: upload
url: https://api.ayakael.net
repo: mirrors/zotero
tag: ${{ inputs.ref_name }}
release-dir: ./
release-notes: "This release includes a fully buildable tarball"