Skip to content

Deploying from phrase/openapi@4e0f6d0f #56

Deploying from phrase/openapi@4e0f6d0f

Deploying from phrase/openapi@4e0f6d0f #56

Workflow file for this run

name: release
on:
push:
tags:
- '*'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Version
id: version
run: |
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Build package
run: bash ./.github/workflows/release.sh -xe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ steps.version.outputs.VERSION }}
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@bea5cda687c2b79989126d589ef4411bedce0195 # pin@master
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}