-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (41 loc) · 1 KB
/
push.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
on:
- push
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@main
- name: Install Racket
uses: Bogdanp/[email protected]
with:
architecture: 'x64'
distribution: 'full'
version: '7.9'
- name: Run Tests
run: raco test .
- name: Archive www
uses: actions/upload-artifact@v2
with:
name: www
path: www
deploy:
needs: build-and-test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Download www
uses: actions/download-artifact@v2
with:
name: www
path: www
- name: Deploy to web
uses: plum-umd/github-actions-rsync@master
with:
RSYNC_OPTIONS: -r --delete-after --quiet
RSYNC_TARGET: www/
RSYNC_SOURCE: www/
env:
SSH_PRIVATE_KEY: ${{secrets.SSH_PRIVATE_KEY}}
SSH_USERNAME: ${{secrets.SSH_USERNAME}}
SSH_HOSTNAME: ${{secrets.SSH_HOSTNAME}}