Skip to content

Merge branch 'main' of https://github.com/jlurena/monica_website into… #27

Merge branch 'main' of https://github.com/jlurena/monica_website into…

Merge branch 'main' of https://github.com/jlurena/monica_website into… #27

Workflow file for this run

name: Build Website
on:
push:
branches:
- main
jobs:
build:
name: Build gh-page
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install NodeJS
uses: actions/setup-node@v3
with:
node-version: 20.2.0
cache: 'npm'
- name: Install NPM Dependencies
run: npm install --omit=dev
- name: Build
run: npm run build
- name: Setup File System
run: >
mv build/ /tmp/ &&
rm -rf * &&
mv /tmp/build/ . &&
mv build/index.html . &&
mv build public &&
ls
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add -A
git commit -m "build" || true
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-page
force: true