Skip to content

[enh] regenerate code with external mpython-core dependency #3

[enh] regenerate code with external mpython-core dependency

[enh] regenerate code with external mpython-core dependency #3

Workflow file for this run

name: Create tag from new version
on:
workflow_dispatch:
workflow_call:
push:
paths:
- pyproject.toml
permissions:
contents: write
jobs:
setup-tag:
runs-on: "ubuntu-latest"
steps:
- name: Check out SPM Python
uses: actions/checkout@v4
- name: Get package version
run: |
VERSION=$(sed -n 's/^version = "\(.*\)"/\1/p' pyproject.toml)
echo "pyproject.toml version: $VERSION"
git config user.name github-actions
git config user.email github-actions@github.com
MSG=$(git log $(git describe --tags --abbrev=0)..HEAD --oneline)
echo "Creating tag $VERSION with message:"
echo "$MSG"
git tag -a "$VERSION" -m "$MSG"
- name: Publish tags
run: git push --tags