From 1997c557fab5776212e6648bdfc8d6f60f8950e0 Mon Sep 17 00:00:00 2001 From: Mark Elvers Date: Wed, 4 Mar 2026 14:13:45 +0000 Subject: [PATCH] Update workflow Signed-off-by: Mark Elvers --- .github/workflows/binary-nightly.yaml | 9 +++------ .github/workflows/binary-stable.yaml | 9 +++------ rclone.conf | 5 +++++ 3 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 rclone.conf diff --git a/.github/workflows/binary-nightly.yaml b/.github/workflows/binary-nightly.yaml index f5e5314..1ece6d6 100644 --- a/.github/workflows/binary-nightly.yaml +++ b/.github/workflows/binary-nightly.yaml @@ -154,7 +154,7 @@ jobs: dune pkg lock dune build - deploy-s3: + deploy: runs-on: ubuntu-latest needs: [binary, check-artifacts] permissions: @@ -219,9 +219,6 @@ jobs: - name: Move artifacts to scope run: mv "/home/runner/artifacts" "." - - name: Export Rclone configuration - run: echo "${{ secrets.RCLONE_CONF }}" >> rclone.conf - - name: Export executables and generate html shell: bash run: ./_build/install/default/bin/sandworm sync --commit "${{ needs.binary.outputs.git-commit }}" @@ -236,8 +233,8 @@ jobs: notify: runs-on: ubuntu-latest - needs: [binary, check-artifacts, deploy-s3] - if: ${{ github.ref == 'refs/heads/main' && !cancelled() && (needs.binary.result == 'failure' || needs.check-artifacts.result == 'failure' || needs.deploy-s3.result == 'failure' ) }} + needs: [binary, check-artifacts, deploy] + if: ${{ github.ref == 'refs/heads/main' && !cancelled() && (needs.binary.result == 'failure' || needs.check-artifacts.result == 'failure' || needs.deploy.result == 'failure' ) }} steps: - name: Post an error message to Slack id: slack diff --git a/.github/workflows/binary-stable.yaml b/.github/workflows/binary-stable.yaml index 85b7168..591c46a 100644 --- a/.github/workflows/binary-stable.yaml +++ b/.github/workflows/binary-stable.yaml @@ -172,7 +172,7 @@ jobs: dune pkg lock dune build - deploy-s3: + deploy: runs-on: ubuntu-latest needs: [check_build, binary, check-artifacts] permissions: @@ -219,9 +219,6 @@ jobs: SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} SSH_PUBLIC_KEY: ${{ secrets.SSH_PUBLIC_KEY }} - - name: Export Rclone configuration - run: echo "${{ secrets.RCLONE_CONF }}" >> rclone.conf - - name: Export executables and generate html shell: bash run: ./_build/install/default/bin/sandworm sync --commit "${{ needs.check_build.outputs.commit }}" --tag "${{ needs.check_build.outputs.release }}" @@ -237,8 +234,8 @@ jobs: notify: runs-on: ubuntu-latest - needs: [binary, check-artifacts, deploy-s3] - if: ${{ github.ref == 'refs/heads/main' && !cancelled() && (needs.binary.result == 'failure' || needs.check-artifacts.result == 'failure' || needs.deploy-s3.result == 'failure' ) }} + needs: [binary, check-artifacts, deploy] + if: ${{ github.ref == 'refs/heads/main' && !cancelled() && (needs.binary.result == 'failure' || needs.check-artifacts.result == 'failure' || needs.deploy.result == 'failure' ) }} steps: - name: Post an error message to Slack id: slack diff --git a/rclone.conf b/rclone.conf new file mode 100644 index 0000000..f7a65f6 --- /dev/null +++ b/rclone.conf @@ -0,0 +1,5 @@ +[dune-binary-distribution] +type = sftp +host = get.dune.build +user = github-actions +key_file = /home/runner/.ssh/tarides