Skip to content

Merge pull request #4 from guimorone/develop #115

Merge pull request #4 from guimorone/develop

Merge pull request #4 from guimorone/develop #115

Workflow file for this run

name: Deployment
on:
push:
branches:
- main
paths:
- 'website/**'
- '.github/workflows/deploy.yml'
workflow_dispatch:
jobs:
build-and-deploy:
name: Build website
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ github.sha }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ vars.NODE_VERSION }}
- name: Deploy
run: |
cd $GITHUB_WORKSPACE/website
npm install
git config --global user.name $user_name
git config --global user.email $user_email
git remote set-url origin https://${github_token}@github.com/${repository}
npm run deploy
env:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
github_token: ${{ secrets.ACCESS_TOKEN }}
repository: ${{ github.repository }}