From 1ecffe6156e80aabf2b9c29a8a51d094d28082cb Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 12 Aug 2024 00:07:17 -0400 Subject: [PATCH] .forgejo: add release job --- .forgejo/workflows/generate-tarball.yml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index 613b14eaec..be3d52330e 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -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"