diff options
-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}}" |