diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 95124eb..20eaa3c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,8 +2,8 @@ name: Deploy on: push: - tags: - - "v[0-9]+.[0-9]+.[0-9]+" + branches: + - add-release-ci jobs: build-and-upload: @@ -12,16 +12,11 @@ jobs: strategy: matrix: - # You can add more, for any target you'd like! include: - build: linux os: ubuntu-latest target: x86_64-unknown-linux-musl - - build: macos - os: macos-latest - target: x86_64-apple-darwin - steps: - name: Checkout uses: actions/checkout@v3 @@ -40,6 +35,6 @@ jobs: - name: Install Rust run: rustup target add ${{ matrix.target }} - - name: Publish to Cargo - run: | - cargo workspaces publish --verbose --allow-branch * --token ${{ secrets.CARGO_REGISTRY_TOKEN }} + - uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}