Merge pull request #9 from kddejong/feature/schema/releases #5
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: "[CD] Create release" | |
on: | |
push: | |
tags: | |
- "v1*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- name: Build | |
run: | | |
pip install -e . | |
scripts/release_schemas/generator.py | |
scripts/release_schemas/changelog.py --version ${{ github.ref_name }} | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/v1') | |
with: | |
name: Release ${{ github.ref_name }} | |
token: ${{ secrets.GH_PAT }} | |
body_path: ${{ github.workspace }}/build/CHANGELOG.txt | |
files: | | |
build/schemas-cfnlint.zip | |
build/schemas-draft7.zip |