Skip to content

action

action #38

Workflow file for this run

name: Build website UIs
on:
push:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
concurrency:
group: github-pages
cancel-in-progress: false
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
#build en website
- name: Install Gulp locally to build the UI
run: npm i gulp-cli ./en
- name: Build en UI
run: gulp bundle -f ./en/gulpfile.js
- name: Move built folder to public
run: mv en/build/ui-bundle.zip public/en/
# build fr website
- name: Install Gulp locally to build the UI
run: npm i gulp-cli ./fr
- name: Build fr UI
run: gulp bundle -f ./fr/gulpfile.js
- name: Move built folder to public
run: mv fr/build/ui-bundle.zip public/fr/
# download UIs
- name: Upload GitHub Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: public
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4