Skip to content

Commit 1c569ec

Browse files
authored
CI: Disable testing during publish for testing (#85)
#### Problem The publish job isn't working, but it's hard to debug because it takes a long time to run. #### Summary of changes Don't run the tests.
1 parent 9af5691 commit 1c569ec

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-rust.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ jobs:
4040
test:
4141
name: Test Rust Crate
4242
runs-on: ubuntu-latest
43+
if: false
4344
steps:
4445
- name: Git Checkout
4546
uses: actions/checkout@v4
@@ -95,8 +96,8 @@ jobs:
9596

9697
- name: Ensure CARGO_REGISTRY_TOKEN variable is set
9798
env:
98-
token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
99-
if: ${{ env.token == '' }}
99+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
100+
if: ${{ env.CARGO_REGISTRY_TOKEN == '' }}
100101
run: |
101102
echo "The CARGO_REGISTRY_TOKEN secret variable is not set"
102103
echo "Go to \"Settings\" -> \"Secrets and variables\" -> \"Actions\" -> \"New repository secret\"."

0 commit comments

Comments
 (0)