From 3c50ed562bbc3dfa8be24828d5b9fc8c9bc815c7 Mon Sep 17 00:00:00 2001 From: Hendrik Maus Date: Wed, 13 Apr 2022 07:43:11 +0200 Subject: [PATCH] ci: include crates.io publishing in the deployment workflow --- .github/workflows/cd.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 9db3545e9..98446b4db 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -120,10 +120,27 @@ jobs: | awk '{print $1}' > "${file}.sha256" done - - name: Create GitHub Release + - name: Release | GitHub if: ${{ steps.release.outputs.release-detected == 'true' }} uses: softprops/action-gh-release@v1 with: tag_name: ${{ steps.release.outputs.tag-name }} name: ${{ steps.release.outputs.tag-name }} files: ${{ env.PROJ_NAME }}-*/${{ env.PROJ_NAME }}-* + + - name: Release | Crates.io + if: ${{ steps.release.outputs.release-detected == 'true' }} + working-directory: ./release-operator + env: + RUST_LOG: info + run: | + # Publish to crates.io + cargo run -- publish \ + --token ${{ secrets.CARGO_REGISTRY_TOKEN }} \ + --crate ../fj-app \ + --crate ../fj-debug \ + --crate ../fj-host \ + --crate ../fj-kernel \ + --crate ../fj-math \ + --crate ../fj-operations \ + --crate ../fj