🚀 misc: add continuous deployment workflow

This commit is contained in:
welpo 2024-02-06 18:24:28 +01:00
parent 7cc74d1fd9
commit 9b8b1396cf
No known key found for this signature in database
GPG key ID: A2F978CF4EC1F5A6
2 changed files with 42 additions and 5 deletions

35
.github/workflows/cd.yml vendored Normal file
View file

@ -0,0 +1,35 @@
name: Continuous Deployment
on:
push:
tags:
- 'v*.*.*'
jobs:
deploy:
name: Deploy and release
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate the changelog
uses: orhun/git-cliff-action@main
id: git-cliff
with:
config: cliff.toml
args: --latest --strip all
env:
OUTPUT: CHANGES.md
- name: Create GitHub release
run: |
gh release create ${{ github.ref_name }} \
--title "Release ${{ github.ref_name }}" \
--notes "${{ steps.git-cliff.outputs.content }}"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}