-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (43 loc) · 1.44 KB
/
python-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# This workflow will upload a Python Package when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
name: Python - Publish Package
on:
release:
types: [published]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: TODO
run: echo TODO
# TODO: enable the publication when the release trigger is understood
# - uses: actions/checkout@v2
#
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: '3.7'
#
# - name: Install poetry
# run: |
# mkdir -p /opt/cache
# curl -sSL https://install.python-poetry.org | python -
# export PATH="${HOME}/.local/bin:${PATH}"
# python -m pip install --upgrade pip
# poetry --version
# poetry config cache-dir /opt/cache
# poetry config virtualenvs.create true
# poetry config virtualenvs.in-project false
#
# - name: Build package
# run: make package-check
#
# - name: Publish package
# uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
# with:
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}