-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (42 loc) · 1.25 KB
/
_deploy.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
name: (not reusable) Commit CHANGELOG.md, create a Release of this repo
on:
workflow_dispatch:
inputs:
version-tag:
description: 'Version tag'
required: true
default: v0.1.8
dry-run:
description: Dry run
type: boolean
default: false
#### aaaaaaa
jobs:
commit-changelog-and-release:
uses: ./.github/workflows/commit-changelog-and-release.yml
with:
version-tag: ${{ github.event.inputs.version-tag }}
#### aaaaaaa
dry-run: ${{ github.event.inputs.dry-run == 'true' }}
changelog-path: docs/CHANGELOG.md
exclude-types: build,docs,style,other
deploy-yml-path: .github/workflows/_deploy.yml
publish-to-pypi:
if: ${{ github.event.inputs.dry-run == 'false' }}
needs: commit-changelog-and-release
runs-on: ubuntu-24.04
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.version-tag }}
- uses: deargen/workflows/actions/setup-python-and-uv@master
with:
pyproject-toml-file: python-projector/pyproject.toml
- name: Build and upload to PyPI
run: |
cd python-projector
uv build
uv publish