diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..784df52 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,34 @@ +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: Install rsync + run: sudo apt-get update && sudo apt-get -y install rsync + - name: Check Rsync version + run: rsync --version + shell: bash + - 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