Skip to content

Merge pull request #1 from panxl6/master #1

Merge pull request #1 from panxl6/master

Merge pull request #1 from panxl6/master #1

Workflow file for this run

# This code was auto generated by AfterShip SDK Generator.
# Do not edit the class manually.
name: Release to PyPI
on:
push:
tags:
- '*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python # Set Python version
uses: actions/setup-python@v3
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.in-project --unset
make install
- name: Build
run: |
make build
- name: Format
run: |
make format
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: ${{ steps.get_version.outputs.VERSION }}
path: dist
- name: Release to PyPI
run: |
pip install twine
twine upload -u ${{ secrets.PYPI_USERNAME }} -p ${{ secrets.PYPI_PASSWORD }} --verbose dist/*