-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (55 loc) · 1.56 KB
/
coveo-styles.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
name: coveo-styles
on:
push:
branches:
- main
paths:
- 'coveo-styles/**'
- '!**.lock'
- '!**.md'
pull_request:
types: [opened, synchronize, reopened]
paths:
- 'coveo-styles/**'
- '.github/workflows/coveo-styles.yml'
- '!**.md'
workflow_dispatch:
inputs:
publish:
description: "Publish to pypi.org?"
required: false
default: 'false'
jobs:
pyprojectci:
name: pyproject ci
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [3.8, "3.10"]
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Run stew ci
uses: coveo/stew@main
with:
project-name: ${{ github.workflow }}
python-version: ${{ matrix.python-version }}
poetry-version: "<2"
publish:
name: Publish to pypi.org
runs-on: ubuntu-20.04
needs: pyprojectci
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Publish to pypi
uses: ./.github/workflows/actions/publish-to-pypi
with:
project-name: ${{ github.workflow }}
pypi-token: ${{ secrets.PYPI_TOKEN_COVEO_STYLES }}
pre-release: ${{ github.ref != 'refs/heads/main' }}
dry-run: ${{ github.ref != 'refs/heads/main' && github.event.inputs.publish != 'true' }}