Skip to content

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeking3 committed Dec 30, 2021
1 parent e4c161e commit ff9b1aa
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# runs on releases (prereleased or released)
# publishes package to test.pypi.org or actual
---
name: Release

on:
release:
types:
- prereleased
- released

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: hmarr/debug-action@v2

- uses: actions/checkout@v2

- name: Build and Publish (Prerelease)
if: "github.event.release.prerelease"
uses: JRubics/poetry-publish@v1.9
with:
pypi_token: ${{ secrets.PYPI_TEST_TOKEN }}
build_format: "sdist"
repository_name: "testpypi"
repository_url: "https://test.pypi.org/legacy/"

- name: Build and Publish (Release)
if: "!github.event.release.prerelease"
uses: JRubics/poetry-publish@v1.9
with:
pypi_token: ${{ secrets.PYPI_TOKEN }}
build_format: "sdist"
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#
# Copyright (C) 2021 Tuono, Inc.
# All Rights Reserved
#
# runs on pull requests and merges into main
# runs lint and coverage and uploads to codecov
---
name: Test

Expand Down

0 comments on commit ff9b1aa

Please sign in to comment.