From 962462a97cca00a17b82b949f4f8588679bb1345 Mon Sep 17 00:00:00 2001 From: Milo <50248166+Milo123459@users.noreply.github.com> Date: Fri, 12 Apr 2024 18:31:35 +0100 Subject: [PATCH] fix release ci --- .github/workflows/docker-publish.yml | 2 +- .github/workflows/release.yml | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 38eed6f9e..d460c9370 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -22,7 +22,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Install the cosign tool # https://github.com/sigstore/cosign-installer diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 47f295e61..d73f5c7bf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: echo "version is: ${{ env.CLI_VERSION }}" - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 1 @@ -158,3 +158,18 @@ jobs: download-url: https://github.com/railwayapp/cli/releases/latest/download/railway-${{ needs.create-release.outputs.railway_version }}-${{ matrix.target }}.tar.gz env: COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }} + publish-crate: + name: Publish new version on crates.io + needs: ["create-release"] + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: 1 + - name: Toolchain + uses: dtolnay/rust-toolchain@stable + - name: Publish + uses: katyo/publish-crates@v2 + with: + registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }} \ No newline at end of file