Repository navigation
85 lines (82 loc) · 2.2 KB
/
Copy pathrelease.yaml
File metadata and controls
85 lines (82 loc) · 2.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
name: 'Release new version'
on:
push:
tags:
- 'v*.*.*'
env:
UV_NO_SYNC: 1
TASK_X_REMOTE_TASKFILES: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: aquaproj/aqua-installer@82d0e83878a8657c4a6f2ff1755d3bfbfc67f329 # v4.1.0
with:
aqua_version: v2.64.0
- name: 'Build package'
run: |
uv build
- uses: actions/upload-artifact@v7
with:
name: packages-${{ github.ref_name }}
path: dist/
gh-release:
needs: [build]
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v7
- uses: actions/download-artifact@v8
with:
name: packages-${{ github.ref_name }}
path: dist/
- uses: ncipollo/release-action@v1
with:
artifacts: 'dist/*'
bodyFile: '.github/release-body.md'
draft: false
name: Release ${{ github.ref_name }}
tag: ${{ github.ref }}
prerelease: false
publish-pypi:
needs: [build]
runs-on: ubuntu-latest
if: success() && ${{ needs.prepare.outputs.is-release }}
environment:
name: 'pypi'
url: 'https://pypi.org/p/atsphinx-stlite'
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v8
with:
name: packages-${{ github.ref_name }}
path: dist/
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
deploy-docs:
needs: [build]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v7
- uses: aquaproj/aqua-installer@82d0e83878a8657c4a6f2ff1755d3bfbfc67f329 # v4.1.0
with:
aqua_version: v2.64.0
- name: Build document
run: |
task --yes setup docs:build-mini18n-dirhtml
- name: Upload artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/_build/mini18n-dirhtml
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5