Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MXWXZ committed Aug 30, 2024
1 parent 1645cd4 commit 4007be3
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/plugin_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,22 @@ jobs:
name: plugin-${{ matrix.platform.os_name }}
path: release
retention-days: 1
publish_crate:
needs: build_plugin
name: Publish crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
- name: Push to crate.io
run: |
cd plugin/monitor_api
cargo publish --no-verify || true
cd -
cd plugin/agent_api
cargo publish --no-verify || true
cd -
package_plugin:
needs: build_plugin
name: Package plugin
Expand Down
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,22 @@ jobs:
with:
draft: true
files: ${{ matrix.platform.name }}*
publish_crate:
needs: build_skynet
name: Publish crate
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Login
run: cargo login ${{ secrets.CRATES_IO_TOKEN }}
- name: Push to crate.io
run: |
cd skynet_macro
cargo publish --no-verify || true
cd -
cd skynet_api
cargo publish --no-verify || true
cd -
push_dockerhub:
needs: build_skynet
name: Push to dockerhub
Expand Down

0 comments on commit 4007be3

Please sign in to comment.