. d updated markdown snippets #15
Workflow file for this run
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: Deploy and Create Release | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
publish: | |
permissions: | |
id-token: write # Required for authentication using OIDC | |
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 | |
# with: | |
# working-directory: path/to/package/within/repository | |
create_release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Get the latest tag | |
id: tag | |
run: echo ::set-output name=tag::${GITHUB_REF##*/} | |
- name: Create GitHub release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release create ${{ steps.tag.outputs.tag }} --notes "Release ${{ steps.tag.outputs.tag }}" |