diff options
author | 2021-05-16 22:37:42 -0700 | |
---|---|---|
committer | 2021-05-16 22:37:42 -0700 | |
commit | 88d8e3620dc657f3a127a9201f84faf28cbe606a (patch) | |
tree | e67b9f24d90af648d1fc888d020c76d935178005 | |
parent | 0a9b37955559ecfef6ce0a5447628b2f06feedf2 (diff) | |
download | notion-88d8e3620dc657f3a127a9201f84faf28cbe606a.tar.gz notion-88d8e3620dc657f3a127a9201f84faf28cbe606a.tar.zst notion-88d8e3620dc657f3a127a9201f84faf28cbe606a.zip |
build: move to actions-rs for cargo commands
-rw-r--r-- | .github/workflows/build.yml | 10 | ||||
-rw-r--r-- | .github/workflows/release.yaml | 13 |
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}}" |