Skip to content

Release

Release #78

Workflow file for this run

name : Release
on:
push:
tags:
- "v*"
jobs:
build:
name: set env
runs-on: ubuntu-latest
steps:
- name : Checkout
uses : actions/checkout@v2
- name : set_up_python3.8
uses : actions/setup-python@v4
with :
python-version : 3.8
architecture: "x64"
- name: Install poetry
run: pipx install poetry
shell: bash
- name : Install dependance
run: poetry install
shell: bash
- name : Build dist
run : poetry build
shell: bash
# - name: upload artifact
# uses: actions/[email protected]
# with:
# tag_name: ${{steps.get_version.outputs.VERSION }}
# release_name: ${{steps.get_version.outputs.VERSION }}
# name: build_result
# path: dist/*
# - name: Download a Build Artifact
# uses: actions/[email protected]
# with:
# name: build_result
# - name : Check pwd
# run: pwd
# shell: bash
# - name : Show files
# run: ls -l
# shell: bash
- name : Realease whl
uses : ncipollo/[email protected]
with :
artifacts: "./dist/*.whl,./dist/*.tar.gz"
generateReleaseNotes: true
- name : Publish to pypi
if: startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}