aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jake Swenson <jake@jakeswenson.com> 2021-05-16 22:37:42 -0700
committerGravatar Jake Swenson <jake@jakeswenson.com> 2021-05-16 22:37:42 -0700
commit88d8e3620dc657f3a127a9201f84faf28cbe606a (patch)
treee67b9f24d90af648d1fc888d020c76d935178005
parent0a9b37955559ecfef6ce0a5447628b2f06feedf2 (diff)
downloadnotion-88d8e3620dc657f3a127a9201f84faf28cbe606a.tar.gz
notion-88d8e3620dc657f3a127a9201f84faf28cbe606a.tar.zst
notion-88d8e3620dc657f3a127a9201f84faf28cbe606a.zip
build: move to actions-rs for cargo commands
-rw-r--r--.github/workflows/build.yml10
-rw-r--r--.github/workflows/release.yaml13
2 files changed, 17 insertions, 6 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b4059c0..ce57b95 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -30,8 +30,14 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Build
- run: .ci/build.sh
+ uses: actions-rs/cargo@v1
+ with:
+ command: build
+ args: --all-features
- name: Run tests
+ uses: actions-rs/cargo@v1
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
- run: .ci/test.sh
+ with:
+ command: test
+ args: --all-features
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index c9b9f37..7998f1e 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -41,8 +41,13 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
- - name: build
- run: .ci/build.sh
+ - name: Release Build
+ uses: actions-rs/cargo@v1
+ with:
+ command: build
+ args: --release --all-features
- name: Cargo Publish
- if: matrix.build.publish == true
- run: cargo publish --locked --token "${{secrets.crates_token}}"
+ uses: actions-rs/cargo@v1
+ with:
+ command: publish
+ args: --token "${{secrets.crates_token}}"