Skip to content

Commit 215ae54

Browse files
authored
Add GitHub action for running cargo publish (#2)
1 parent a70f298 commit 215ae54

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
- name: Checkout submodules
11+
shell: bash
12+
run: |
13+
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
14+
git submodule sync --recursive
15+
git -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive --depth=1
16+
- uses: actions-rs/toolchain@v1
17+
with:
18+
toolchain: stable
19+
- run: cargo publish

0 commit comments

Comments
 (0)