Skip to content

Commit

Permalink
github branches
Browse files Browse the repository at this point in the history
  • Loading branch information
boonboonsiri committed Jan 3, 2024
1 parent 8eac30f commit 25999c2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 69 deletions.
62 changes: 18 additions & 44 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,55 +1,29 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [main]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true

env:
# Hosted GitHub runners have 7 GB of memory available, let's use 6 GB
NODE_OPTIONS: --max-old-space-size=6144
branches:
- main # Change this to your default branch if it's different

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
- name: Checkout code
uses: actions/checkout@v2

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: npm
node-version: 18 # Use Node.js 18 here

- name: Install dependencies
run: npm install --frozen-lockfile --non-interactive
- name: Build
run: npm install

- name: Build site
run: npm run build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: build

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build # Change this if your build output directory is different
24 changes: 0 additions & 24 deletions .github/workflows/test-deploy.yml

This file was deleted.

1 change: 0 additions & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ const config = {
// If you aren't using GitHub pages, you don't need these.
organizationName: 'boonboonsiri', // Usually your GitHub org/user name.
projectName: 'boonboonsiri.github.io', // Usually your repo name.
deploymentBranch: 'main',
trailingSlash: false,


Expand Down

0 comments on commit 25999c2

Please sign in to comment.