Skip to content

Update publish.yml

Update publish.yml #18

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Publish Portfolio to GitHub Pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
container:
image: node:lts
steps:
- uses: actions/checkout@v3
- name: Copy publish.sh script
run: |
cp ./publish.sh /usr/local/bin
- name: Install dependencies and static website
run: |
cd website
yarn install
yarn build
- name: Push to Github Pages branch
run: |
cd website/build/tech-portfolio
touch .nojekyll
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} INPUT_DIRECTORY=$(pwd) publish.sh