From 33f096b582500679f62c64b31c10815dce11151b Mon Sep 17 00:00:00 2001 From: Myles Braithwaite Date: Thu, 29 Dec 2022 14:16:34 -0500 Subject: [PATCH] :construction_worker: Added a release action. --- .github/workflows/release.yml | 41 +++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b7240e1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,41 @@ +name: Release + +on: + release: + types: + - created + +jobs: + publish: + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + + matrix: + os: [ubuntu-latest] + python-version: [3.9] + + steps: + - id: checkout + name: Checkout 🛎 + uses: actions/checkout@v2 + + - id: setup-python + name: Setup Python ${{ matrix.python-version }} 🏗 + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + + - id: setup-poetry + name: Setup Poetry 📝 + run: | + curl -sSL https://install.python-poetry.org | python3 - + + - id: publish + name: Publish 🚀 + env: + PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} + run: | + poetry config pypi-token.pypi $PYPI_TOKEN + poetry publish --build