Skip to content

Commit 84d3cef

Browse files
author
Alex
committed
ci: simplify publish-crates to use CARGO_REGISTRY_TOKEN directly
1 parent ad180e3 commit 84d3cef

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

‎.github/workflows/publish-crates.yml‎

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,9 @@ jobs:
2525
- uses: actions/checkout@v4
2626
- uses: dtolnay/rust-toolchain@stable
2727
- uses: Swatinem/rust-cache@v2
28-
- uses: 1password/install-cli-action@v2
29-
- name: Verify 1Password service account secret
30-
env:
31-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
32-
run: |
33-
if [ -z "$OP_SERVICE_ACCOUNT_TOKEN" ]; then
34-
echo "ERROR: OP_SERVICE_ACCOUNT_TOKEN secret is not configured." >&2
35-
echo "Set it as a repository or organisation secret to enable crates.io publishing." >&2
36-
exit 1
37-
fi
38-
- name: Get crates.io token from 1Password
39-
id: token
40-
env:
41-
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_SERVICE_ACCOUNT_TOKEN }}
42-
run: |
43-
TOKEN=$(op read "op://TerraphimPlatform/crates.io.token/token")
44-
echo "token=$TOKEN" >> $GITHUB_OUTPUT
4528
- name: Publish crates in dependency order
4629
env:
47-
CARGO_REGISTRY_TOKEN: ${{ steps.token.outputs.token }}
30+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
4831
CRATE_LIST: ${{ inputs.crate_list }}
4932
DRY_RUN: ${{ inputs.dry_run }}
5033
run: |

0 commit comments

Comments
 (0)