From d9c129fe8f34ed52f9d390ceaceb861f9963238c Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sun, 11 Aug 2024 23:49:15 -0400 Subject: [PATCH] .forgejo: make tarball generation manual --- .forgejo/workflows/generate-tarball.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/generate-tarball.yml b/.forgejo/workflows/generate-tarball.yml index 0fae8b59ff..6156b07446 100644 --- a/.forgejo/workflows/generate-tarball.yml +++ b/.forgejo/workflows/generate-tarball.yml @@ -1,7 +1,10 @@ on: - push: - branches: - - 'refs/tags/*' + workflow_dispatch: + inputs: + ref_name: + description: 'Tag or commit' + required: true + type: string jobs: build-tarball: @@ -17,15 +20,15 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 500 - ref: ${{ github.ref_name }} + ref: ${{ inputs.ref_name }} - name: Package build run: | - echo "building tarball for ${{ githug.ref_name }}" - git-archive-all --force-submodules $CI_PROJECT_NAME-${{ github.ref_name }}.tar.gz + 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-${{ 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 uses: forgejo/upload-artifact@v3 with: name: tarball - path: $CI_PROJECT_NAME-${{ github.ref_name }}.* + path: $CI_PROJECT_NAME-${{ inputs.ref_name }}.*