diff --git a/.github/workflows/all.yml b/.github/workflows/all.yml new file mode 100644 index 0000000..d38c569 --- /dev/null +++ b/.github/workflows/all.yml @@ -0,0 +1,33 @@ +name: Build Wasmo & CLI binaries + +on: + workflow_dispatch: + inputs: + version: + description: "Version number" + +jobs: + build-and-upload-to-docker-hub: + runs-on: ubuntu-latest + name: Release Wasmo Docker Images + steps: + - name: Build docker images + uses: ./docker + with: + version: ${{ inputs.version }} + build-cli: + runs-on: ubuntu-latest + name: build-cli + steps: + - name: Build Wasmo CLI binaries + uses: ./cli + with: + version: ${{ inputs.version }} + push-to-crates-io: + runs-on: ubuntu-latest + name: Push on crates.io + steps: + - name: Build Wasmo CLI binaries + uses: ./cratesio + + diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml index 3672a22..114e0c0 100644 --- a/.github/workflows/cli.yml +++ b/.github/workflows/cli.yml @@ -34,6 +34,13 @@ jobs: - stable steps: - uses: actions/checkout@v3 + - name: Edit Toml + uses: ciiiii/toml-editor@1.0.0 + with: + working-directory: "./cli" + file: "Cargo.toml" + key: "version" + value: ${{ inputs.version }} - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 34af0ae..fe9d50d 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -14,6 +14,20 @@ jobs: - name: Check out the repo uses: actions/checkout@v4 + - name: Update server package.json version + uses: jossef/action-set-json-field@v2.1 + with: + file: server/package.json + field: version + value: ${{ inputs.version }} + + - name: Update ui package.json version + uses: jossef/action-set-json-field@v2.1 + with: + file: ui/package.json + field: version + value: ${{ inputs.version }} + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2