Skip to content

Merge pull request #267 from NHSDigital/dependabot/bump-wheel-0.46.3 #899

Merge pull request #267 from NHSDigital/dependabot/bump-wheel-0.46.3

Merge pull request #267 from NHSDigital/dependabot/bump-wheel-0.46.3 #899

name: Create Release
on: push
jobs:
create_release:
name: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Install Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Upgrade python pip
run: python -m pip install --upgrade pip
- name: Install git
run: pip install gitpython
- name: Install semver
run: pip install semver
- name: Set SPEC_VERSION env var
run: echo "SPEC_VERSION=$(python scripts/calculate_version.py)" >> $GITHUB_ENV
- name: Create release (main only)
id: create-release
if: github.ref == 'refs/heads/main'
uses: actions/create-release@v1
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ env.SPEC_VERSION }}
release_name: ${{ env.SPEC_VERSION }}