Skip to content

.github/workflows/python-publish.yml #4

.github/workflows/python-publish.yml

.github/workflows/python-publish.yml #4

Workflow file for this run

on:
release:
types: [ created ]
jobs:
publish:
strategy:
fail-fast: false
matrix:
python-version: [ 3.9 ]
poetry-version: [ 1.6.1 ]
os: [ ubuntu-latest ]
runs-on: ${{ matrix.os }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
with:
poetry-version: ${{ matrix.poetry-version }}
- name: build
run: |
echo "RELEASE_VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
poetry build
zip -r puepy-${RELEASE-VERSION}.zip puepy/*.py
- name: Upload release artifact
uses: Shopify/[email protected]
with:
name: puepy-${RELEASE-VERSION}.zip
path: puepy-${RELEASE-VERSION}.zip
# - name: build
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1