fix: GitHub workflow, cargo publish before create release,
This commit is contained in:
@@ -6,11 +6,28 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
#########################
|
||||||
|
## Publish to crates.io #
|
||||||
|
#########################
|
||||||
|
|
||||||
|
cargo_publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: publish to crates.io
|
||||||
|
uses: katyo/publish-crates@v1
|
||||||
|
with:
|
||||||
|
registry-token: ${{ secrets.CRATES_IO_TOKEN }}
|
||||||
|
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
## Cross platform binary build for release page #
|
## Cross platform binary build for release page #
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
cross_platform_build:
|
cross_platform_build:
|
||||||
|
needs: [cargo_publish]
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
platform:
|
platform:
|
||||||
@@ -88,28 +105,14 @@ jobs:
|
|||||||
**/oxker_*.zip
|
**/oxker_*.zip
|
||||||
**/oxker_*.tar.gz
|
**/oxker_*.tar.gz
|
||||||
|
|
||||||
#########################
|
|
||||||
## Publish to crates.io #
|
|
||||||
#########################
|
|
||||||
|
|
||||||
cargo_publish:
|
|
||||||
needs: [create_release]
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: publish to crates.io
|
|
||||||
uses: katyo/publish-crates@v1
|
|
||||||
with:
|
|
||||||
registry-token: ${{ secrets.CRATES_IO_TOKEN }}
|
|
||||||
|
|
||||||
#########################################
|
#########################################
|
||||||
## Build images for Dockerhub & ghcr.io #
|
## Build images for Dockerhub & ghcr.io #
|
||||||
#########################################
|
#########################################
|
||||||
|
|
||||||
image_build:
|
image_build:
|
||||||
needs: [cargo_publish]
|
needs: [create_release]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
|
|||||||
Reference in New Issue
Block a user