Revert ".forgejo: remove tarball build for now"
This reverts commit 23d49cbf23
.
This commit is contained in:
parent
0883786d45
commit
23b71670ed
1 changed files with 27 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue