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

33 lines
914 B
YAML
Raw Normal View History

2023-02-17 19:03:07 +01:00
name: Deploy
2023-02-17 18:44:59 +01:00
on:
2023-02-17 19:03:07 +01:00
workflow_dispatch:
2023-02-17 18:44:59 +01:00
push:
2023-02-17 19:03:07 +01:00
branches:
- "main"
2023-02-17 18:44:59 +01:00
jobs:
2023-02-17 19:03:07 +01:00
deploy:
2023-02-17 18:44:59 +01:00
runs-on: ubuntu-latest
steps:
2023-02-17 19:03:07 +01:00
- name: Checkout Code
uses: actions/checkout@v3
- name: Get Next Version
id: semver
uses: ietf-tools/semver-action@v1
with:
token: ${{ github.token }}
branch: main
- uses: rickstaa/action-create-tag@v1
with:
tag: ${{ steps.semver.outputs.next }}
message: ${{ steps.semver.outputs.next }}
github_token: ${{ github.token }}
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]
draft: true
# (Required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}