forked from scikit-optimize/scikit-optimize
-
Notifications
You must be signed in to change notification settings - Fork 7
51 lines (44 loc) · 1.09 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
name: Publish
on:
push:
tags: [ 'v[0-9]+\.[0-9]+.*' ]
jobs:
build:
uses: ./.github/workflows/ci.yml
publish:
needs: build
runs-on: ubuntu-22.04
environment:
name: release
url: https://pypi.org/p/ft-scikit-optimize
permissions:
id-token: write
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: package
path: dist
- name: Publish 📦 on PyPI Test
uses: pypa/[email protected]
with:
repository-url: https://test.pypi.org/legacy/
- name: Publish 📦 on PyPI
uses: pypa/[email protected]
docs:
if: false
needs: build
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ 3.11 ]
steps:
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: docs
- name: Publish docs
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_DOCS_TOKEN }}
run: |
.github/scripts/publish_docs.sh doc/_build/html/stable