.forgejo: make tarball generation manual
This commit is contained in:
parent
732ba1c738
commit
d9c129fe8f
1 changed files with 11 additions and 8 deletions
|
@ -1,7 +1,10 @@
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches:
|
inputs:
|
||||||
- 'refs/tags/*'
|
ref_name:
|
||||||
|
description: 'Tag or commit'
|
||||||
|
required: true
|
||||||
|
type: string
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-tarball:
|
build-tarball:
|
||||||
|
@ -17,15 +20,15 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 500
|
fetch-depth: 500
|
||||||
ref: ${{ github.ref_name }}
|
ref: ${{ inputs.ref_name }}
|
||||||
- name: Package build
|
- name: Package build
|
||||||
run: |
|
run: |
|
||||||
echo "building tarball for ${{ githug.ref_name }}"
|
echo "building tarball for ${{ inputs.ref_name }}"
|
||||||
git-archive-all --force-submodules $CI_PROJECT_NAME-${{ github.ref_name }}.tar.gz
|
git-archive-all --force-submodules $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz
|
||||||
echo "Generating sha512sum"
|
echo "Generating sha512sum"
|
||||||
sha512sum $CI_PROJECT_NAME-${{ github.ref_name }}.tar.gz > $CI_PROJECT_NAME-${{ github.ref_name }}.tar.gz.sha512sum
|
sha512sum $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz > $CI_PROJECT_NAME-${{ inputs.ref_name }}.tar.gz.sha512sum
|
||||||
- name: Package upload
|
- name: Package upload
|
||||||
uses: forgejo/upload-artifact@v3
|
uses: forgejo/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: tarball
|
name: tarball
|
||||||
path: $CI_PROJECT_NAME-${{ github.ref_name }}.*
|
path: $CI_PROJECT_NAME-${{ inputs.ref_name }}.*
|
||||||
|
|
Loading…
Reference in a new issue