Skip to content

Commit

Permalink
ci: wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tzoiker committed Nov 2, 2023
1 parent ddffb14 commit a9af203
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
name: publish

on:
push:
tags:
- v*
pull_request:
branches: [ main ]
# push:
# tags:
# - v*

jobs:
publish:
Expand All @@ -19,7 +21,7 @@ jobs:
python-version: '3.11'

- name: Fetch tags
run: git fetch --unshallow --tags || true
run: git fetch --unshallow --tags --force || true

- name: Install poetry
run: python -m pip install poetry
Expand All @@ -30,9 +32,12 @@ jobs:
- name: Install package
run: poetry install

- name: Mint token
id: mint
uses: tschm/[email protected]
- name: Build package
run: poetry build

- name: Publish to PyPI
run: poetry publish --build -u __token__ -p '${{ steps.mint.outputs.api-token }}'
# - name: Mint token
# id: mint
# uses: tschm/[email protected]

# - name: Publish to PyPI
# run: poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}'

0 comments on commit a9af203

Please sign in to comment.