Skip to content

release version minor by @cutoffthetop #3

release version minor by @cutoffthetop

release version minor by @cutoffthetop #3

Workflow file for this run

name: Release
run-name: release version ${{ inputs.version }} by @${{ github.actor }}
on:
workflow_dispatch:
branches: ["main"]
inputs:
version:
type: choice
description: 'part of the project version to update'
options:
- major
- minor
- patch
required: true
env:
PIP_NO_OPTION: on
PIP_NO_CLEAN: on
PIP_PREFER_BINARY: on
permissions:
contents: write
concurrency:
group: "release"
cancel-in-progress: false
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Cache requirements
uses: actions/cache@v4
env:
cache-name: cache-requirements
with:
path: ~/.cache/pip
key: ${{ env.cache-name }}-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ env.cache-name }}-
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install requirements
run: make setup
- name: Release new version
run: |
git config --global user.name 'RKIMetadataExchange'
git config --global user.email '[email protected]'
pdm release ${{ inputs.version }}