-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (46 loc) · 1.35 KB
/
python-package.yaml
File metadata and controls
60 lines (46 loc) · 1.35 KB
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
51
52
53
54
55
56
57
58
59
60
---
name: 'CI'
on:
push:
branches:
- '**'
tags:
- '*'
env:
GIT_SYNC_URL: "https://${{ secrets.GITLAB_USERNAME_ROBOT }}:${{ secrets.GITLAB_TOKEN_ROBOT }}@gitlab.com/nofusscomputing/projects/centurion_erp.git"
jobs:
python-build:
name: 'Python Build'
uses: nofusscomputing/action_python/.github/workflows/python-package.yaml@development
#
# See: https://github.com/pypa/gh-action-pypi-publish/issues/166
# See: https://github.com/pypi/warehouse/issues/11096
# python-publish:
# name: 'Python Build'
# uses: nofusscomputing/action_python/.github/workflows/python-publish.yaml@development
# if: startsWith(github.ref, 'refs/tags/')
# needs:
# - python-build
# with:
# PYTHON_PROJECT_NAME:
# secrets:
# password: ${{ secrets.NFC_PYPI_TOKEN }}
python-publish:
name: 'Python Publish'
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/pytest-simplified/
permissions:
id-token: write
needs:
- python-build
steps:
- name: Download built artifact to dist/
uses: actions/download-artifact@v4
with:
name: Packages
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1