name: Release on: push: tags: ["v*"] env: REGISTRY: git.fristy.net API: https://git.fristy.net/api/v1/repos/fristy/frislit jobs: prepare: name: Prepare release runs-on: ubuntu-latest timeout-minutes: 10 permissions: contents: write outputs: version: ${{ steps.version.outputs.version }} semver: ${{ steps.version.outputs.semver }} steps: - uses: actions/checkout@v7 - name: Read the version from the tag id: version run: | VERSION="${GITHUB_REF_NAME#v}" echo "version=$VERSION" >> "$GITHUB_OUTPUT" echo "semver=${VERSION%%-*}" >> "$GITHUB_OUTPUT" - name: Open a draft release env: TOKEN: ${{ secrets.GITEA_TOKEN }} VERSION: ${{ steps.version.outputs.version }} run: | body=$(cat < /dev/null echo "release ${GITHUB_REF_NAME} published"