Skip to content

Create docs project for Kedro-Viz (#1586) #35

Create docs project for Kedro-Viz (#1586)

Create docs project for Kedro-Viz (#1586) #35

Workflow file for this run

name: Check version and prepare release
on:
push:
branches:
- main
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install requests
- name: Check package version
run: python tools/github_actions/check_version.py
- name: Set outputs
id: version_check
run: |
echo "new_release=${{ env.NEW_RELEASE }}" >> $GITHUB_OUTPUT
echo "package_name=${{ env.PACKAGE_NAME }}" >> $GITHUB_OUTPUT
echo "package_version=${{ env.PACKAGE_VERSION }}" >> $GITHUB_OUTPUT
outputs:
new_release: ${{ steps.version_check.outputs.new_release }}
package_name: ${{ steps.version_check.outputs.package_name }}
package_version: ${{ steps.version_check.outputs.package_version }}
prepare-release:
needs: [check-version]
if: ${{ needs.check-version.outputs.new_release == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Extract release notes from ${{needs.check-version.outputs.package_name}}/RELEASE.md
id: extract
run: |
python tools/github_actions/extract_release_notes.py \
"RELEASE.md" \
"Release ${{needs.check-version.outputs.package_version}}"
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: v${{needs.check-version.outputs.package_version}}
name: v${{needs.check-version.outputs.package_version}}
body_path: release_body.txt
draft: false
prerelease: false
token: ${{ secrets.GH_TAGGING_TOKEN }}