Skip to content

Commit

Permalink
Fix cargo login and test job triggered on tags (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-zen committed Jan 16, 2022
1 parent 4f2cd65 commit 5753d8d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ on:
tags: [ "*" ]

jobs:
docs:
deploy:
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
toolchain: 1.51.0
override: true
- uses: Swatinem/rust-cache@v1

Expand All @@ -32,10 +32,5 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: target/doc

- name: Login into crates.io
run: cargo login ${CRATES_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_TOKEN }}
- name: Publish into crates.io
run: cargo publish

- name: Publish to crates.io
run: cargo login ${{ secrets.CARGO_TOKEN }} && cargo publish
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test

on: [push, pull_request]
on:
push:
tags-ignore: [ "*" ]
pull_request: {}

jobs:
test:
Expand Down

0 comments on commit 5753d8d

Please sign in to comment.