Use local dict instead of modifying locals() #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: release | |
on: | |
release: | |
types: [published] | |
workflow_dispatch: | |
inputs: | |
ref: | |
description: 'Tag to release' | |
required: true | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
if: ${{ github.event_name == 'release' }} | |
- uses: actions/checkout@v2 | |
if: ${{ github.event_name == 'workflow_dispatch' }} | |
with: | |
ref: ${{ github.event.inputs.ref }} | |
- name: Create dist | |
run: make wheel | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |