Skip to content

Commit a840e64

Browse files
authored
chore: add release-plz workflow (#140)
* chore: add release-plz workflow This removes the need for the custom crates publishing, and the tag should trigger the npm and pypi. * fix: update lockfile * chore: remove locked check * ci: remove rust cache We were running out of disk space while building? * fix: re-add the cache * chore: free up disk space
1 parent 529a46a commit a840e64

File tree

4 files changed

+234
-40
lines changed

4 files changed

+234
-40
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,17 @@ jobs:
1515
name: Test
1616
runs-on: ubuntu-latest
1717
steps:
18+
# We've run out of disk space while building libduckdb-sys, so this gives
19+
# us more headroom in a quite hackey way.
20+
- name: Free Disk Space
21+
run: |
22+
sudo rm -rf /usr/share/dotnet
23+
sudo rm -rf /usr/local/lib/android
24+
sudo rm -rf /opt/ghc
25+
sudo rm -rf /opt/hostedtoolcache/CodeQL
26+
df -h
1827
- uses: actions/checkout@v6
1928
- uses: Swatinem/rust-cache@v2
20-
- name: Update
21-
# Ensure the lockfile is up-to-date, which is required for publishing
22-
run: cargo update --locked
2329
- name: Format
2430
run: cargo fmt --check
2531
- name: Check

.github/workflows/crates-io.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/release-plz.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Release-plz
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-plz-release:
10+
name: Release-plz release
11+
if: ${{ github.repository_owner == 'developmentseed' }}
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
steps:
16+
- &checkout
17+
name: Checkout repository
18+
uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 0
21+
persist-credentials: false
22+
- &install-rust
23+
name: Install Rust toolchain
24+
uses: dtolnay/rust-toolchain@stable
25+
- name: Run release-plz
26+
uses: release-plz/action@v0.5
27+
with:
28+
command: release
29+
env:
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
release-plz-pr:
32+
name: Release-plz PR
33+
runs-on: ubuntu-latest
34+
if: ${{ github.repository_owner == 'developmentseed' }}
35+
permissions:
36+
contents: write
37+
pull-requests: write
38+
id-token: write
39+
concurrency:
40+
group: release-plz-${{ github.ref }}
41+
cancel-in-progress: false
42+
steps:
43+
- *checkout
44+
- *install-rust
45+
- name: Run release-plz
46+
uses: release-plz/action@v0.5
47+
with:
48+
command: release-pr
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)