Skip to content

ci: Add a workflow to create a GitHub Release #2

ci: Add a workflow to create a GitHub Release

ci: Add a workflow to create a GitHub Release #2

name: github/release

Check failure on line 1 in .github/workflows/create_github_reelase.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/create_github_reelase.yml

Invalid workflow file

(Line: 17, Col: 5): Required property is missing: runs-on
run-name: "[${{ github.ref_name }}] github/release"
on:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
push:
tags:
- '*'
# https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs#defining-access-for-the-github_token-scopes
permissions: {}
jobs:
create-release:
permissions:
contents: write
steps:
- id: checkout_source
name: Checkout Source
# https://github.com/actions/checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- id: create_release
name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash --noprofile --norc -euxo pipefail {0}
run: |
# create GitHub release
# https://cli.github.com/manual/gh_release_create
args=(
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--title 'Release ${{ github.ref_name }}'
--generate-notes
)
url=$(gh release create "${args[@]}")
echo "::notice::${url}"