Skip to content

Update product-page-deploy.yml #61

Update product-page-deploy.yml

Update product-page-deploy.yml #61

name: Deploy the Product 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"
# Connected Repository
GITHUB_REPOSITORY_NAME: ${{ github.event.repository.name }}
GITHUB_REPOSITORY_URL: https://github.com/OpenCatalogi
GITHUB_API_BASE_URL: https://api.github.com/repos/OpenCatalogi/.github/contents/
GITHUB_DOCS_DIRECTORY_PATHS: '[{"name": "Handleidingen", "location": "/docs/handleidingen"},{"name": "Roadmap", "location": "/docs/roadmap"}]'
# Links
SLACK_URL: "https://join.slack.com/t/samenorganiseren/shared_invite/zt-22wtrcb1y-RMdSp6C1LMhUaCZQlL9trQ"
READ_THE_DOCS_URL: "https://commongateway.readthedocs.io/en/latest/"
# Navbar
NAVBAR_LOGO_URL: "https://www.rotterdam.nl/images/logo-base.svg"
# Footer
FOOTER_LOGO_URL: "https://www.rotterdam.nl/images/logo-base-white.svg"
FOOTER_LOGO_HREF: "https://rotterdam.nl/"
# Jumbotron
JUMBOTRON_TITLE: "OpenCatalogi"
JUMBOTRON_SUBTITLE: "OpenCatalogi is een oplossing voor het gezamenlijk weergeven van meerdere bronnen in één uniform overzicht (catalogus)"
JUMBOTRON_DESCRIPTION: >
Als federatieve oplossing biedt OpenCatalogi een digitaal platform dat zich richt op
de standaardisatie en digitalisering van overheidsdiensten. Het platform faciliteert
een efficiëntere delen van informatie tussen overheidsorganisaties over hun software
en processen, waardoor ze hun dienstverlening kunnen verbeteren en moderniseren.
Door het aanbieden van informatie uit meerdere bronnen en het bieden van gestandaardiseerde
informatie, stelt OpenCatalogi overheidsentiteiten in staat om sneller en effectiever te
reageren op de behoeften van zichzelf en burgers.
JUMBOTRON_SVG: "https://backend-dvg.rotterdam.nl/sites/default/files/2022-12/22500-Arnoud-Verhey_0.jpg"
# Other
FAVICON_URL: "https://www.rotterdam.nl/favicon.ico?v=2"
# NL Design Theme
NL_DESIGN_THEME_CLASSNAME: "rotterdam-theme"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Get the Product Website Template Code
uses: actions/checkout@v2
with:
repository: ConductionNL/product-website-template
ref: development
# With special thanxs to https://github.com/SpicyPizza/create-envfile
- name: Make envfile
uses: SpicyPizza/create-envfile@v2.0
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_GITHUB_API_BASE_URL: ${{ env.GITHUB_API_BASE_URL }}
envkey_GATSBY_FAVICON_URL: ${{ env.FAVICON_URL }}
envkey_GATSBY_NAVBAR_LOGO_URL: ${{ env.NAVBAR_LOGO_URL }}
envkey_GATSBY_GITHUB_DOCS_DIRECTORY_PATHS: ${{ env.GITHUB_DOCS_DIRECTORY_PATHS }}
envkey_GATSBY_READ_THE_DOCS_URL: ${{ env.READ_THE_DOCS_URL }}
envkey_GATSBY_SLACK_URL: ${{ env.SLACK_URL }}
envkey_GATSBY_GITHUB_REPOSITORY_URL: ${{ env.GITHUB_REPOSITORY_URL }}
envkey_GATSBY_JUMBOTRON_TITLE: ${{ env.JUMBOTRON_TITLE }}
envkey_GATSBY_JUMBOTRON_SUBTITLE: ${{ env.JUMBOTRON_SUBTITLE }}
envkey_GATSBY_JUMBOTRON_DESCRIPTION: ${{ env.JUMBOTRON_DESCRIPTION }}
envkey_GATSBY_JUMBOTRON_SVG: ${{ env.JUMBOTRON_SVG }}
envkey_GATSBY_FOOTER_LOGO_URL: ${{ env.FOOTER_LOGO_URL }}
envkey_GATSBY_FOOTER_LOGO_HREF: ${{ env.FOOTER_LOGO_HREF }}
envkey_GATSBY_NL_DESIGN_THEME_CLASSNAME: ${{ env.NL_DESIGN_THEME_CLASSNAME }}
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: 14
- name: Install dependencies
run: cd pwa && npm install
- 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/github-pages-deploy-action@4.1.0
with:
branch: ${{ env.GITHUB_PAGES_BRANCH }}
folder: pwa/public