Skip to content

Commit

Permalink
tag release
Browse files Browse the repository at this point in the history
  • Loading branch information
CIGbalance committed Nov 28, 2024
1 parent 5422843 commit e575130
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/tag_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: tag-release

on:
push:
# Pattern matched against refs/tags
tags:
- 'v*' # This includes only tags starting with v

jobs:
build-source:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
# Dedicated environments with protections for publishing are strongly recommended.
environment:
name: release
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
# url: https://pypi.org/p/YOURPROJECT
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install build
- name: Build source Python package
run: python -m build -s -o dist .
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./dist/**

0 comments on commit e575130

Please sign in to comment.