mirror of
https://github.com/jdejaegh/irm-kmi-ha.git
synced 2025-06-27 11:39:26 +02:00
27 lines
No EOL
538 B
YAML
27 lines
No EOL
538 B
YAML
name: Create release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*.*.*'
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
tests:
|
|
uses: ./.github/workflows/pytest.yml
|
|
release:
|
|
name: Release pushed tag
|
|
needs: [tests]
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- name: Create release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
tag: ${{ github.ref_name }}
|
|
run: |
|
|
gh release create "$tag" \
|
|
--repo="$GITHUB_REPOSITORY" \
|
|
--title="${tag#v}" \
|
|
--generate-notes |