Skip to content

Commit

Permalink
cicd: git actions
Browse files Browse the repository at this point in the history
  • Loading branch information
edotau authored Jan 18, 2024
1 parent 73818a7 commit 2616d04
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/gh-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Build 🏠 + 🚀
on:
push:
branches:
- gh-pages
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Cache
uses: actions/cache@v4
with:
path: ${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}
- name: Install and Build
uses: actions/setup-node@v4
with:
node-version: 20
- run: yarn install
- run: yarn build
env:
CI: true
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

0 comments on commit 2616d04

Please sign in to comment.