Revert ".forgejo: remove tarball build for now"

This reverts commit 23d49cbf23.
This commit is contained in:
Antoine Martin 2024-08-12 01:25:33 -04:00
parent 0883786d45
commit 23b71670ed
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -7,8 +7,35 @@ on:
type: string
jobs:
build-tarball:
name: Build tarball w/ submodules
runs-on: x86_64
container:
image: alpine:latest
env:
CI_PROJECT_NAME: zotero
steps:
- name: Environment setup
run: apk add nodejs git git-archive-all gzip
- name: Repo pull
uses: actions/checkout@v4
with:
fetch-depth: 500
ref: ${{ inputs.ref_name }}
- name: Package build
run: |
echo "building tarball for ${{ inputs.ref_name }}"
git-archive-all --force-submodules $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz
echo "Generating sha512sum"
sha512sum $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz > $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz.sha512sum
- name: Package upload
uses: forgejo/upload-artifact@v3
with:
name: tarball
path: zotero-${{ inputs.ref_name }}.*
upload-release:
runs-on: x86_64
needs: [build-tarball]
container:
image: docker.io/node:20-bookworm
steps: