Skip to content

Commit

Permalink
attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
tjlane committed Oct 30, 2024
1 parent 3636dc6 commit 2d6ee6c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@ name: CICD

on:
workflow_run:
branches:
- master
workflows:
- "tests"
- "mypy"
- "ruff"
branches:
- "master"
types:
- completed
workflow_dispatch:

jobs:
deploy:
name: Deploy
name: deploy
runs-on: ubuntu-latest
# only run if previous workflows were a success
# AND the commit starts with v (meaning it's a tag)
if: ${{ github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_commit.message, 'v') }}

steps:
- uses: actions/checkout@v4
Expand All @@ -34,7 +36,7 @@ jobs:
twine check dist/*
ls -lh dist
- name: Build and publish
- name: build and publish
run: twine upload dist/*
env:
TWINE_USERNAME: __token__
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
Expand Down

0 comments on commit 2d6ee6c

Please sign in to comment.