Skip to content

feat: Fix Tag CI

feat: Fix Tag CI #3

Workflow file for this run

name: Publish to PyPI
on:
push:
branches: [ "feat/ga-publish" ]
jobs:
tag:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: VERSION # only check out this file
sparse-checkout-cone-mode: false
- name: Get version
id: version
run: echo "version=v$(cat VERSION)" >> $GITHUB_OUTPUT
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
custom_tag: ${{ steps.version.outputs.version }}
# publish:
# needs: tag
# runs-on: ubuntu-latest
# environment:
# name: pypi
# url: https://pypi.org/p/dhapi/
# permissions:
# id-token: write
# steps:
# - uses: actions/checkout@v4
# - uses: pypa/gh-action-pypi-publish@release/v1
# - uses: actions/setup-python@v5
# with:
# python-version: '3.10'
# - name: Install Python Dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# - name: Execute publishing
# run: make publish