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/generator.py scripts/release/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.md files: | build/schemas-cfnlint.zip build/schemas-draft7.zip