dagger-rs/.github/workflows/create-release.yml

26 lines
740 B
YAML
Raw Normal View History

name: Release
permissions:
contents: write
2023-02-17 18:44:59 +01:00
on:
push:
tags:
- v[0-9]+.*
2023-02-17 18:44:59 +01:00
jobs:
create-release:
2023-02-17 18:44:59 +01:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
2023-02-17 18:44:59 +01:00
- uses: taiki-e/create-gh-release-action@v1
with:
# (Optional) Path to changelog.
changelog: CHANGELOG.md
# (Optional) Create a draft release.
# [default value: false]
2023-02-18 14:41:16 +01:00
draft: false
2023-02-17 18:44:59 +01:00
# (Required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
2023-02-18 14:41:16 +01:00
- name: Update rust toolchain
run: rustup update stable && rustup default stable
- name: Run dagger [RELEASE]
run: cargo run -p ci -- release --version="${{github.ref_name}}"