Skip to content

Commit

Permalink
ci(github): update release & publish workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianLusina committed Aug 16, 2023
1 parent 0db7347 commit 2a468e3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,16 @@
name: Publish

on:
workflow_run:
workflows:
- "Build"
types:
- completed

permissions:
contents: read
pull-requests: read
push:
tags:
- "*"

jobs:
lint:
name: Publish
uses: SanctumLabs/ci-workflows/.github/workflows/python-pypi-publish.yml@main
with:
command: make publish
version: ${{ github.ref_name }}
secrets:
pypi_token: ${{ secrets.PYPI_TOKEN }}
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
name: Release

on:
workflow_run:
workflows:
- "Publish"
push:
branches:
- 'main'
types:
- completed

jobs:
release:
Expand Down

0 comments on commit 2a468e3

Please sign in to comment.