Skip to content

Release workflow

Release workflow #8

Workflow file for this run

name: Release
on:
# workflow_dispatch:
# inputs:
# release_type:
# description: 'Type of release'
# required: true
# default: 'patch'
# type: choice
# options:
# - major
# - minor
# - patch
pull_request:
branches: [ main ]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
enable-cache: true
- name: Bump version test
run: |
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git config --global user.name "$(gh api /users/${GITHUB_ACTOR} | jq .name -r)"
git config -l
uvx bump-my-version show current_version
uvx bump-my-version bump patch
uvx bump-my-version show current_version
# - uses: PyO3/maturin-action@v1
# with:
# command: build
# sccache: true
#
# - name: Bump version
# id: bump
# uses: callowayproject/bump-my-version@master
# env:
# BUMPVERSION_TAG: "true"
# with:
# args: ${{ inputs.bump-type }}
# github-token: ${{ secrets.GH_TOKEN }}
# - name: Create GitHub Release
# if: steps.bump.outputs.bumped == 'true'
# uses: softprops/action-gh-release@v2
# with:
# tag_name: v${{ steps.bump.outputs.current-version }}
# name: Release v${{ steps.bump.outputs.current-version }}
# files: |
# target/wheels/*.whl
# draft: false
# prerelease: false
# generate_release_notes: true
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}