Skip to content

Commit

Permalink
Added Deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonchainMaxi committed Aug 13, 2024
1 parent b4acb44 commit 933293e
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Deploy to GitHub Pages

on:
push:
branches:
- main

jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: npm # Changed from yarn to npm

- name: Install dependencies
run: |
if [ -f yarn.lock ]; then
yarn install --frozen-lockfile
elif [ -f package-lock.json ]; then
npm ci
else
npm i
fi
- name: Build website
run: |
if [ -f yarn.lock ]; then
yarn build
else
npm run build
fi
- name: Upload Build Artifact
uses: actions/upload-pages-artifact@v3
with:
path: build

deploy:
name: Deploy to GitHub Pages
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 933293e

Please sign in to comment.