Skip to content

Commit 4cc22ed

Browse files
authored
spectre-prover pipeline (#69)
1 parent e8f33fd commit 4cc22ed

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/spectre-test.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Spectre Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
13+
- name: initialize all submodules
14+
run: git submodule update --init --recursive
15+
16+
- name: deployments
17+
uses: burnett01/rsync-deployments@6.0.0
18+
with:
19+
switches: -avzr --delete --exclude '.git'
20+
path: ./
21+
remote_path: /home/ubuntu/Spectre
22+
remote_host: ${{ secrets.ACTIONS_HOST }}
23+
remote_user: ${{ secrets.ACTIONS_USER }}
24+
remote_key: ${{ secrets.ACTIONS_CONNECTIONS }}
25+
26+
- name: Spectre
27+
uses: appleboy/ssh-action@v1.0.3
28+
with:
29+
host: ${{ secrets.ACTIONS_HOST }}
30+
username: ${{ secrets.ACTIONS_USER }}
31+
key: ${{ secrets.ACTIONS_CONNECTIONS }}
32+
script: |
33+
sudo systemctl daemon-reload
34+
sudo systemctl restart spectre
35+
36+
- name: slack notify
37+
uses: 8398a7/action-slack@v3
38+
with:
39+
status: ${{ job.status }}
40+
fields: repo,message,commit,author,action,job,eventName,ref,workflow
41+
env:
42+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
43+
if: always()

0 commit comments

Comments
 (0)