# Gitea Actions: on a version tag (vX.Y.Z), build the self-extracting bundle # and publish it as a release asset. Make the release public (Gitea per-repo # setting) and the bundle is downloadable without granting repo access. # # Requirements: # - A registered Gitea act_runner whose labels include the `runs-on` value # below (adjust if yours differ, e.g. self-hosted). # - A repo/org secret named TOKEN_GITEA holding a Gitea access token with # write:repository scope (Settings -> Applications -> Generate Token). # NOTE: Gitea reserves the GITEA_ prefix, so the name can't start with it; # TOKEN_GITEA is fine. name: Release bundle on: push: tags: - 'v*' jobs: bundle: runs-on: ubuntu-latest steps: - name: Checkout (full history + tags) uses: actions/checkout@v4 with: fetch-depth: 0 - name: Build self-extracting bundle run: | bash build-bundle.sh "${GITHUB_REF_NAME}" ls -l dist/ - name: Create release and attach the bundle uses: https://gitea.com/actions/release-action@main with: files: |- dist/automations-bundle.sh api_key: '${{ secrets.TOKEN_GITEA }}' # title/body default to the tag; uncomment to customize: # title: 'automations ${{ github.ref_name }}'