-
Notifications
You must be signed in to change notification settings - Fork 386
72 lines (58 loc) · 1.54 KB
/
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Publish
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+[a-z]+"
- "v[0-9]+.[0-9]+.[0-9]+rc[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+dev[0-9]+"
permissions:
contents: read
jobs:
pre-commit:
uses: ./.github/workflows/step_pre-commit.yml
test-pip:
needs: [ pre-commit ]
uses: ./.github/workflows/step_tests-pip.yml
with:
coverage: false
test-conda:
needs: [ pre-commit ]
uses: ./.github/workflows/step_tests-conda.yml
with:
coverage: false
test-ui:
needs: [ test-pip ]
uses: ./.github/workflows/step_tests-ui.yml
test-status:
needs: [ pre-commit, test-pip, test-conda, test-ui ]
runs-on: ubuntu-latest
steps:
- uses: re-actors/alls-green@release/v1
with:
allowed-skips: pre-commit, test-pip, test-conda, test-ui
jobs: ${{ toJSON(needs) }}
if: always()
build:
needs: [ test-status ]
uses: ./.github/workflows/step_build.yml
publish:
needs: [ build ]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/jupytext
permissions:
contents: read
id-token: write
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Build package
run: |
python -m pip install wheel build
HATCH_BUILD_HOOKS_ENABLE=true python -m build
- name: Publish
uses: pypa/gh-action-pypi-publish@release/v1