Release PyAqueduct #7
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 PyAqueduct | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: "PyAqueduct Version" | |
required: true | |
type: string | |
default: "MAJOR.MINOR.PATCH" | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setting up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Build Release Artifacts | |
run: ci/build_release.sh -t ${{ inputs.version }} | |
- name: Push package to Pypi | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.AQUEDUCTHUB_PYPI_TOKEN }} \ | |
&& poetry publish | |
- name: Create release and upload artifacts | |
uses: ncipollo/release-action@v1.12.0 | |
with: | |
tag: ${{ inputs.version }} | |
name: "${{ inputs.version }}" | |
allowUpdates: true | |
artifacts: "dist/pyaqueduct-*.tar.gz" | |
token: ${{ secrets.GITHUB_TOKEN }} |