-
Notifications
You must be signed in to change notification settings - Fork 50
48 lines (37 loc) · 1.05 KB
/
release.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
name: Release
on:
release:
types: [published]
permissions:
contents: read
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '>=3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build packaging requests
- name: Check version bump
run: python3 check-version-bump.py
- name: Sync pyproject.toml/Cargo.toml versions
run: python3 rust-support/fill-crate-version.py
- name: Build package
run: python -m build
- name: Publish to crates.io
run: |
cargo publish -p chatdbg_macros --allow-dirty
cargo publish -p chatdbg --allow-dirty
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
working-directory: rust-support
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}