Skip to content

Commit bd35fbd

Browse files
authored
Merge pull request #17 from syncable-dev/feature/pub-creates
change ci
2 parents 5bf018e + 60ccde2 commit bd35fbd

3 files changed

Lines changed: 40 additions & 28 deletions

File tree

.github/workflows/release-plz.yml

Lines changed: 32 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,28 @@ jobs:
1111
runs-on: ubuntu-latest
1212
permissions:
1313
contents: write
14+
# Expose all three tokens to every step in this job:
15+
env:
16+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
RELEASE_PLZ_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
18+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1419

1520
steps:
16-
- name: Debug repository context
21+
- name: Debug context & secrets
1722
run: |
18-
echo "Repo: $GITHUB_REPOSITORY"
19-
echo "Actor (who triggered): $GITHUB_ACTOR"
20-
echo "Repository owner: ${{ github.repository_owner }}"
21-
echo "Ref: $GITHUB_REF"
22-
echo "Has RELEASE_PLZ_TOKEN?"; test -n "$RELEASE_PLZ_TOKEN" && echo "✔︎" || echo "✘"
23-
echo "Has CARGO_REGISTRY_TOKEN?"; test -n "$CARGO_REGISTRY_TOKEN" && echo "✔︎" || echo "✘"
23+
echo "Repo: $GITHUB_REPOSITORY"
24+
echo "Actor: $GITHUB_ACTOR"
25+
echo "Repository owner: ${{ github.repository_owner }}"
26+
echo "Ref: $GITHUB_REF"
27+
echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
28+
echo "RELEASE_PLZ_TOKEN length: ${#RELEASE_PLZ_TOKEN}"
29+
echo "CARGO_REGISTRY_TOKEN length:${#CARGO_REGISTRY_TOKEN}"
2430
2531
- name: Checkout repository
2632
uses: actions/checkout@v4
2733
with:
2834
fetch-depth: 0
29-
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
35+
token: ${{ secrets.GITHUB_TOKEN }}
3036

3137
- name: Install Rust toolchain
3238
uses: dtolnay/rust-toolchain@stable
@@ -37,8 +43,9 @@ jobs:
3743
with:
3844
command: release --manifest-path rust-mcp-server-syncable-cli/Cargo.toml
3945
env:
40-
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
41-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
46+
# you can re-declare them here or just inherit the job-level ones:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4249

4350

4451
release-plz-pr:
@@ -51,22 +58,27 @@ jobs:
5158
concurrency:
5259
group: release-plz-${{ github.ref }}
5360
cancel-in-progress: false
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63+
RELEASE_PLZ_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
64+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
5465

5566
steps:
56-
- name: Debug repository context
67+
- name: Debug context & secrets
5768
run: |
58-
echo "Repo: $GITHUB_REPOSITORY"
59-
echo "Actor (who triggered): $GITHUB_ACTOR"
60-
echo "Repository owner: ${{ github.repository_owner }}"
61-
echo "Ref: $GITHUB_REF"
62-
echo "Has RELEASE_PLZ_TOKEN?"; test -n "$RELEASE_PLZ_TOKEN" && echo "✔︎" || echo "✘"
63-
echo "Has CARGO_REGISTRY_TOKEN?"; test -n "$CARGO_REGISTRY_TOKEN" && echo "✔︎" || echo "✘"
69+
echo "Repo: $GITHUB_REPOSITORY"
70+
echo "Actor: $GITHUB_ACTOR"
71+
echo "Repository owner: ${{ github.repository_owner }}"
72+
echo "Ref: $GITHUB_REF"
73+
echo "GITHUB_TOKEN length: ${#GITHUB_TOKEN}"
74+
echo "RELEASE_PLZ_TOKEN length: ${#RELEASE_PLZ_TOKEN}"
75+
echo "CARGO_REGISTRY_TOKEN length:${#CARGO_REGISTRY_TOKEN}"
6476
6577
- name: Checkout repository
6678
uses: actions/checkout@v4
6779
with:
6880
fetch-depth: 0
69-
token: ${{ secrets.RELEASE_PLZ_TOKEN }}
81+
token: ${{ secrets.GITHUB_TOKEN }}
7082

7183
- name: Install Rust toolchain
7284
uses: dtolnay/rust-toolchain@stable
@@ -76,5 +88,5 @@ jobs:
7688
with:
7789
command: pr --manifest-path rust-mcp-server-syncable-cli/Cargo.toml
7890
env:
79-
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }}
80-
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
91+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

release-plz.toml

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[workspace]
2+
packages = ["rust-mcp-server-syncable-cli"]
3+
4+
[release-plz]
5+
manifest_path = "Cargo.toml"
6+
7+
[changelog]
8+
path = "CHANGELOG.md"

0 commit comments

Comments
 (0)