name: Release on: push: tags: ["v*.*.*"] workflow_dispatch: inputs: tag: description: "Existing tag to draft a release for" required: true jobs: release: name: Create release runs-on: ubuntu-latest permissions: contents: write steps: - name: Checkout repository uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 - name: Run `gh` env: GH_TOKEN: ${{ github.token }} TAG: ${{ inputs.tag || github.ref_name }} run: | gh release create \ --draft \ --notes-from-tag \ --verify-tag \ "$TAG"