From 5d6286bccfcc6253295753f0dda125237a77cce4 Mon Sep 17 00:00:00 2001 From: Thierry Berger Date: Wed, 19 Feb 2025 16:17:19 +0100 Subject: [PATCH] add release workflow to help with releasing :fingers_crossed: --- .github/workflows/release.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b8e9a89 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,33 @@ +name: Rapier CI build + +on: + workflow_run: + workflows: [ci, links] + branches: [master] + types: [completed] + workflow_dispatch: + # workflow dispatch is to manually trigger the workflow, + # useful if we want to bring an older version online or an upload failed somehow. + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Check Rsync version + run: rsync --version + - name: Install Linux dependencies + uses: ./.github/actions/install-linux-deps + - name: Setup SSH Key + run: | + mkdir -p ~/.ssh + echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_deploy + chmod 600 ~/.ssh/id_deploy + ssh-keyscan -H ssh.cluster003.hosting.ovh.net >> ~/.ssh/known_hosts + shell: bash + - name: Publish + run: | + ./publish.sh