Skip to content

Commit

Permalink
Configure twine build to publish package on a tag push
Browse files Browse the repository at this point in the history
  • Loading branch information
wcs1only committed Jan 1, 2021
1 parent 472cfc5 commit ea36caa
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yaml
Expand Up @@ -2,8 +2,6 @@ name: mechanical-markdown

on:
push:
branches:
- main
tags:
- v*
pull_request:
Expand All @@ -16,8 +14,8 @@ jobs:
runs-on: ubuntu-latest
env:
PYTHON_VER: 3.7
TWINE_USERNAME: ${{ secrets.PYPI_UPLOAD_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
TWINE_USERNAME: "__token__"
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ env.PYTHON_VER }}
Expand Down

0 comments on commit ea36caa

Please sign in to comment.