Skip to content

Commit 15f6908

Browse files
committed
autopublish rustc_lexer
1 parent 5b88f30 commit 15f6908

File tree

4 files changed

+304
-244
lines changed

4 files changed

+304
-244
lines changed

.github/workflows/main.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,24 @@ on:
44
branches: [master]
55
pull_request:
66
branches: [master]
7+
workflow_dispatch:
78
schedule:
89
# every tuesday at 8am run the build
9-
- cron: '0 8 * * 2'
10+
- cron: "0 8 * * 2"
1011

1112
jobs:
1213
run:
1314
name: Run
1415
runs-on: macos-latest
1516
steps:
16-
- uses: actions/checkout@master
17-
- name: Install Rust
18-
run: rustup update nightly && rustup default nightly
19-
- run: cargo build
20-
- name: Configure crates.io token
21-
run: |
22-
echo "[registry]" >> $HOME/.cargo/credentials
23-
echo "token = \"${{ secrets.CRATESIO_TOKEN }}\"" >> $HOME/.cargo/credentials
24-
- run: cargo run ${{ secrets.github_token }}
25-
if: github.event_name != 'pull_request'
26-
17+
- uses: actions/checkout@master
18+
- name: Install Rust
19+
run: rustup update nightly && rustup default nightly
20+
- run: cargo build
21+
- name: Configure crates.io token
22+
run: |
23+
echo "[registry]" >> $HOME/.cargo/credentials
24+
echo "token = \"${{ secrets.CRATESIO_TOKEN }}\"" >> $HOME/.cargo/credentials
25+
if: github.event_name != 'pull_request'
26+
- run: cargo run ${{ secrets.GH_TOKEN }}
27+
if: github.event_name != 'pull_request'

0 commit comments

Comments
 (0)