Skip to content

Commit

Permalink
feat: adding github action for autodeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenrockstudios committed Feb 6, 2024
1 parent 7fc4c33 commit 2cb0b15
Show file tree
Hide file tree
Showing 3 changed files with 8,399 additions and 14,643 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages

on: workflow_dispatch

permissions:
contents: write

jobs:
deploy:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build website
run: yarn build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3

with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
user_name: brokenrockstudios
user_email: [email protected]
Loading

0 comments on commit 2cb0b15

Please sign in to comment.