Skip to content
This repository was archived by the owner on Sep 9, 2025. It is now read-only.

Commit e6619c2

Browse files
author
Hendrik van Antwerpen
committed
Replace action with cargo invocation
1 parent 3d7ace8 commit e6619c2

File tree

3 files changed

+18
-24
lines changed

3 files changed

+18
-24
lines changed

.github/workflows/publish-lsp-positions.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ jobs:
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
2121
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
22+
run: cargo publish --dry-run
23+
working-directory: ${{ env.CRATE_DIR }}
2624
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
25+
run: cargo publish
26+
working-directory: ${{ env.CRATE_DIR }}
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3129
create-release:
3230
needs: publish-crate
3331
runs-on: ubuntu-latest

.github/workflows/publish-stack-graphs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ jobs:
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
2121
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
22+
run: cargo publish --dry-run
23+
working-directory: ${{ env.CRATE_DIR }}
2624
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
25+
run: cargo publish
26+
working-directory: ${{ env.CRATE_DIR }}
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3129
create-release:
3230
needs: publish-crate
3331
runs-on: ubuntu-latest

.github/workflows/publish-tree-sitter-stack-graphs.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,13 @@ jobs:
1919
uses: actions/checkout@v2
2020
# TODO Verify the crate version matches the tag
2121
- name: Verify publish crate
22-
uses: katyo/publish-crates@v1
23-
with:
24-
path: ${{ env.CRATE_DIR }}
25-
dry-run: true
22+
run: cargo publish --dry-run
23+
working-directory: ${{ env.CRATE_DIR }}
2624
- name: Publish crate
27-
uses: katyo/publish-crates@v1
28-
with:
29-
path: ${{ env.CRATE_DIR }}
30-
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
25+
run: cargo publish
26+
working-directory: ${{ env.CRATE_DIR }}
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3129
publish-npm:
3230
needs: publish-crate
3331
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)