Skip to content

Update PWGchair.yml #803

Update PWGchair.yml

Update PWGchair.yml #803

Workflow file for this run

name: Publication to GitHub Pages
on:
push:
branches:
- hugo
pull_request:
branches:
- hugo
jobs:
publish:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Update repo
run: sudo apt-get update
- name: Configure nodejs and npm
run: |
sudo apt-get install libssl-dev libnode-dev node-gyp nodejs npm
echo "node version:"
node --version
echo "npm version:"
npm --version
- name: Install hugo
run: |
wget https://github.com/gohugoio/hugo/releases/download/v0.121.1/hugo_0.121.1_linux-amd64.deb
sudo dpkg -i hugo_0.121.1_linux-amd64.deb
- name: Install js dependencies
run: |
npm install
echo "gulp version:"
gulp --version
- name: Build website assets
run: gulp
- name: Compile website
run: hugo --ignoreCache
- name: Copy CNAME
#Note: if the repository name changes, the condition has to change
if: ${{ github.repository == 'Dash-Industry-Forum/Dash-Industry-Forum.github.io' }}
run: cp CNAME public/ 2>/dev/null
- name: Deploy to GitHub Pages
#Note: if the repository name changes, the condition has to change
if: ${{ github.repository == 'Dash-Industry-Forum/Dash-Industry-Forum.github.io' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: master # deploying branch
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'