-
-
Notifications
You must be signed in to change notification settings - Fork 682
42 lines (37 loc) · 1011 Bytes
/
loomio_com_image.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
name: Publish Loomio.com image
on:
# push: master
push:
jobs:
push_to_registry:
name: Build and push loomio.com image
runs-on: ubuntu-latest
env:
HAVESECRET: ${{ secrets.DOCKER_USERNAME }}
steps:
- name: Check out loomio source
uses: actions/checkout@v2
if: env.HAVESECRET != null
- name: Check out loomio_subs engine
uses: actions/checkout@v2
if: env.HAVESECRET != null
with:
token: ${{ secrets.GH_PAT }}
repository: loomio/loomio_subs
path: engines
ref: master
- name: Check out loomio-website gem
uses: actions/checkout@v2
if: env.HAVESECRET != null
with:
token: ${{ secrets.GH_PAT }}
repository: loomio/loomio-website
path: website
ref: main
- name: build website
run: |
cd website
npm install
npm run build
cd ..
cp -R ./website/_site/* ./public/