generated from ConductionNL/woo-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (74 loc) · 5.59 KB
/
woo-page-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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Deploy the WOO Page to GitHub Pages
env: # Change these to your preferences any image url can also be a base encoded image
GITHUB_PAGES_BRANCH: gh-pages
# options: "true" | "false"
USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX: "false"
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
API_BASE_URL: "https://api.gateway.commonground.nu/api"
NL_DESIGN_THEME_CLASSNAME: "sloterburg-theme"
DEV_ENVIRONMENT: "true"
SHOW_CATEGORY: "true"
SHOW_ORGANIZATION: "false"
FAVICON_URL: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAABACAYAAABP97SyAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAG0klEQVRogdXbf6hfdRkH8NddlzGGjBVjrCE1ZC0bYrI8I4ZZVJiNfkjIzKaulaIuYww7xUqJUUPsuLb5ozkl1JxbrjHtp7bWtFpmOzKG6IhxEYmQcZG4jBGXy7rrj+dc/Xr2/d77/Z5zvhd6/3Pv5XM+z/N57vl8nud5P5/nDJhmJKn5WI+n8sxL/dY30G8FE0hSg1iH72E+xrALm/PMa/3SOy0GJqlVwrCL2wyfxjZsyTMjTevum4FJaga+gE3aG1bGCLbi/jzz76bW0biBSWoWrhCGXVJBxAgexI4888+662nMwMJ5fBW3YlEDIkexD9vrOKNaBhbb8HLcjKswq468SXAYj2N3njndy8RKBiapC/El3KSZt9UtTmM3foHDeWZ0qgldG5ikLsJKXCucxoyKi2wKJ/Er7BHGnmn3UEcDi+23HJ/Hl3FBHxbZFE5i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528kLSqYxWb1iC5Rf1mbZ/YXl6xZBRm/a21iqGVgklos2kOuqytL5Khr88zrhdfdoxpderj1j0qLKt7YRsEs6iYGY4JX/rjFYT2sWofGkPhHvYVe6NJ54j7h+uJnE4H6GG7OM0da9GzGDRXlbS3H4bYGFp5wjog9S/ApwSyauk8YFY5kU4kP3oLvVpQ5Ioph70A7ujQHf8PSioqmwmFx1sp88Ae4o4bcn7RrBesU6OeIAL1Bc29tWFQE9rYmBwUffEyc56p4Ex/Ks3PrupPGwSS1QOSlq2oon4wPzhX1l+U15MOGPLOt3UBXgT5J3Sgq1b1cnoyJPpbvtGuXLAq6T6rPB0/gw52agnppBPocfmrq66+TeFSHZrrCgd0hQkNdTzwuqFnHK7WeUrWCz93t3DBxTDiPp0TXUacEfKk4b3VTuQlsyzMbJnugaq/aDBGIx0RpYHyK52cKBr9Jc1WzIXykfK7L6HvHb3HWHtBdU2y3+A+SPHN8qgf71nRQ3C1sEQl40+WJNd0YRx8MLBLwjSLdalr+uKjS7et2QlN0aZGogF+PFU3I7IA0z9zfy4Q6t0vLRG/2F4VX7GePDUHL2gbzyVDViy4WRdsV+l/+GxXb8qEqk+v2bM8XMfGz+KTmu5feEA7lYFUBTXbdzxLtIqlmyvG/Eayjl8aIc9CP7yZmi5uiiU94esVxwRP3NrGefn75MltQoPW66285Ia7R7p0qM+oF0/Xt0qWic2MV3tMydEowjsdxqFPnfB1M29dnvHVOl4mw8jJe7Obbhzr4H47z2Pn5Ov0BAAAAAElFTkSuQmCC"
ORGANISATION_NAME: "Gemeente Sloterburg"
JUMBOTRON_IMAGE_URL: "https://raw.githubusercontent.com/ConductionNL/woo-website-sloterburg/main/jumbotron.jpg"
FOOTER_LOGO_URL: "true"
FOOTER_LOGO_HREF: "https://sloterburg.nl/"
FOOTER_CONTENT: "https://raw.githubusercontent.com/ConductionNL/${{github.event.repository.name}}/main/FooterContent.json"
FOOTER_CONTENT_HEADER: "heading-2"
OIDN_NUMBER: "sloterburg"
ENV_VARS_SET: "true"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the WOO Website Template Code
uses: actions/checkout@v2
with:
repository: ConductionNL/woo-website-template
ref: development
# With special thanxs to https://github.com/SpicyPizza/create-envfile
- name: Make envfile
uses: SpicyPizza/[email protected]
with:
envkey_GITHUB_REPOSITORY_NAME: ${{ env.GITHUB_REPOSITORY_NAME }}
envkey_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX: ${{ env.USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX }}
envkey_GATSBY_API_BASE_URL: ${{ env.API_BASE_URL }}
envkey_GATSBY_NL_DESIGN_THEME_CLASSNAME: ${{ env.NL_DESIGN_THEME_CLASSNAME }}
envkey_GATSBY_DEV_ENVIRONMENT: ${{ env.DEV_ENVIRONMENT }}
envkey_GATSBY_SHOW_CATEGORY: ${{ env.SHOW_CATEGORY }}
envkey_GATSBY_SHOW_ORGANIZATION: ${{ env.SHOW_ORGANIZATION }}
envkey_GATSBY_FAVICON_URL: ${{ env.FAVICON_URL }}
envkey_GATSBY_ORGANISATION_NAME: ${{ env.ORGANISATION_NAME }}
envkey_GATSBY_JUMBOTRON_IMAGE_URL: ${{ env.JUMBOTRON_IMAGE_URL }}
envkey_GATSBY_FOOTER_LOGO_URL: ${{ env.FOOTER_LOGO_URL }}
envkey_GATSBY_FOOTER_LOGO_HREF: ${{ env.FOOTER_LOGO_HREF }}
envkey_GATSBY_FOOTER_CONTENT: ${{ env.FOOTER_CONTENT }}
envkey_GATSBY_FOOTER_CONTENT_HEADER: ${{ env.FOOTER_CONTENT_HEADER }}
envkey_GATSBY_OIDN_NUMBER: ${{ env.OIDN_NUMBER }}
envkey_GATSBY_ENV_VARS_SET: ${{ env.ENV_VARS_SET }}
directory: pwa/static
file_name: .env.production
fail_on_empty: true
sort_keys: false
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: Install dependencies
run: cd pwa && npm install
- name: Install parcel/watcher
run: cd pwa && npm install @parcel/watcher
- name: Remove old Gatsby cache
run: rm -rf pwa/.cache
- name: Build application
run: cd pwa && npm run build
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: ${{ env.GITHUB_PAGES_BRANCH }}
folder: pwa/public