-
-
Notifications
You must be signed in to change notification settings - Fork 7
46 lines (39 loc) · 1.28 KB
/
publish-web.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
#
# This workflow is adapted from guide.ubuntu-mate.org! Changes made here must
# be applied to that repository and vice versa.
#
name: Publish to Web
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-20.04
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Install Dependencies
run: |
sudo apt-get install pandoc ruby-html-proofer
- name: Clone Web Repository
run: |
git clone https://github.com/ubuntu-mate/guide.ubuntu-mate.org --depth=1
- name: Build
run: |
cd guide.ubuntu-mate.org/
scripts/build.py ../
- name: Test for errors
run: |
cd guide.ubuntu-mate.org/
scripts/test.sh
# Disabled because deploying via this workflow break the deploy aliases in CF
#- name: Publish to Cloudflare Pages
# if: ${{ github.event_name == 'push' && github.repository == 'ubuntu-mate/ubuntu-mate-guide' }}
# uses: cloudflare/pages-action@v1
# with:
# apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
# accountId: e6fe5e31e8183c8192347f15af553766
# projectName: guide-ubuntu-mate-org
# directory: guide.ubuntu-mate.org/build
# gitHubToken: ${{ secrets.GITHUB_TOKEN }}