Skip to content

Commit

Permalink
Merge branch 'publish-workflow'
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian committed Jul 21, 2021
2 parents 789462d + a12ca88 commit d43dec2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Publish
on:
release:
types: [created]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- run: make all-via-docker
- name: cargo login
run: cargo login $CRATES_IO_TOKEN
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: make publish
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ckb-system-scripts"
version = "0.5.2"
version = "0.5.3"
authors = ["Nervos Core Dev <[email protected]>"]
edition = "2018"
build = "build.rs"
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ make install-tools
make all-via-docker
cargo test --all
```

## Release

Tag and publish the release. GitHub Actions will publish the crate.

0 comments on commit d43dec2

Please sign in to comment.