Skip to content

Commit

Permalink
fix: workflow order
Browse files Browse the repository at this point in the history
  • Loading branch information
levisingularity committed Sep 22, 2023
1 parent 8198931 commit 43b07e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Publish to PyPI

on:
workflow_dispatch:
workflow_run:
workflows: ["Version Tagging"]
types:
- completed

jobs:
publish:
Expand All @@ -22,4 +26,4 @@ jobs:
- name: Build and publish package
run: |
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
poetry publish --build -u __token__ -p ${{ secrets.PYPI_API_TOKEN }}
10 changes: 3 additions & 7 deletions .github/workflows/version-tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,15 @@ on:
version:
description: "Version to tag"
required: true
workflow_run:
workflows: ["Publish to PyPI"]
types:
- completed

jobs:
tag:
uses: singnet/das-scripts-pipeline/.github/workflows/action.yml@rl/semantic-versioning
uses: singnet/das-scripts-pipeline/.github/workflows/action.yml@master
with:
version: ${{ github.event.inputs.version }}
version-strategy: bump-version-from-variable-value
job-image-namespace: trueagi
job-image-version-semver: semantic-versioning
main-branch: feat/publish-pypi
main-branch: master
version-tag-regex-pattern: /^v\d+\.\d+\.\d+$/
version-require-confirmation: "true"
version-require-confirmation: "true"

0 comments on commit 43b07e7

Please sign in to comment.