-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.47 KB
/
deploy.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
43
44
45
46
47
48
49
50
51
52
name: Deploy Jekyll Site
on:
push:
branches:
- staging
- master
- dp-v1-prod
pull_request:
branches:
- staging
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
# Get system info
- run: ifconfig
- run: sudo dmidecode
- run: df -h
- run: free -m
- run: echo "GitHub branch is ${{ github.ref }}"
# Checks-out your repository under $GITHUB_WORKSPACE,
# so your workflow can access it
- name: Checkout repo
uses: actions/checkout@master
# Build Jekyll Site
- run: echo "Building Jekyll site"
- run: sudo gem install bundler
- run: sudo gem install jekyll
- run: sudo bundle install
- run: make build-dweb
- run: make check
- name: Publish to Distributed Press Staging
if: ${{ github.ref == 'refs/heads/staging' }}
uses: hyphacoop/[email protected]
with:
publish_dir: _site
dp_url: https://dp.chanterelle.xyz
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_STAGING_TOKEN }}
site_url: staging.hypha.coop
- name: Publish to Distributed Press Production
if: ${{ github.ref == 'refs/heads/master' }}
uses: hyphacoop/[email protected]
with:
publish_dir: _site
dp_url: https://api.distributed.press
refresh_token: ${{ secrets.DISTRIBUTED_PRESS_PRODUCTION_TOKEN}}
site_url: hypha.coop