Create a Release #202
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create a Release | |
on: | |
workflow_dispatch: | |
permissions: | |
contents: write # for creating release | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
GH_REPO: ${{ github.repository }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./ | |
with: | |
ruby-version: '3.3' | |
- run: ruby release.rb | |
# The same as the update-v1-branch.yml workflow. | |
# That workflow is not triggered by the release created above because of | |
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow | |
- run: git push origin HEAD:v1 |