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 }}.*