Skip to content

Commit 7b22230

Browse files
committed
add release workflow to help with releasing :fingers_crossed:
1 parent d126573 commit 7b22230

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/release.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Rapier CI build
2+
3+
on:
4+
workflow_run:
5+
workflows: [ci, links]
6+
branches: [master]
7+
types: [completed]
8+
workflow_dispatch:
9+
# workflow dispatch is to manually trigger the workflow,
10+
# useful if we want to bring an older version online or an upload failed somehow.
11+
12+
env:
13+
CARGO_TERM_COLOR: always
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Install rsync
21+
run: sudo apt-get update && sudo apt-get -y install rsync
22+
- name: Check Rsync version
23+
run: rsync --version
24+
shell: bash
25+
- name: Setup SSH Key
26+
run: |
27+
mkdir -p ~/.ssh
28+
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_deploy
29+
chmod 600 ~/.ssh/id_deploy
30+
ssh-keyscan -H ssh.cluster003.hosting.ovh.net >> ~/.ssh/known_hosts
31+
shell: bash
32+
- name: Publish
33+
run: |
34+
./publish.sh

0 commit comments

Comments
 (0)