Skip to content

Commit

Permalink
Create deploy_github_pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MauroDruwel authored Jan 28, 2024
1 parent 91a5f4a commit 044b3c5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy_github_pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build and Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build-and-deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install Dependencies
run: yarn install

- name: Build Project
run: yarn build

- name: Export Project
run: yarn export

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./out

0 comments on commit 044b3c5

Please sign in to comment.