-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(): add workflow file and update variable
- Loading branch information
Isaac Shek
committed
Sep 19, 2023
1 parent
291919e
commit 955d1fa
Showing
4 changed files
with
53 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: stacks.website | ||
| ||
on: | ||
push: | ||
paths: | ||
- 'src/**' | ||
pull_request: | ||
branches: | ||
- master | ||
- feat/ensono-rebrand | ||
- feat/testing-deployment | ||
| ||
jobs: | ||
build-and-deploy: | ||
name: Build and Deploy to GitHub Pages | ||
runs-on: ubuntu-latest | ||
| ||
steps: | ||
| ||
# Checkout the documentation repository | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
| ||
# Configure node so that the build can run | ||
- name: Use NodeJS | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '16.14.x' | ||
| ||
# Install Node dependencies | ||
- name: Install Dependencies | ||
run: npm install | ||
| ||
# Build the website | ||
- name: Generate Website | ||
run: npm run build | ||
env: | ||
# Secrets from GitHub go here | ||
ALGOLIA_INDEX_NAME: ${{ secrets.ALGOLIA_INDEX_NAME }} | ||
ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }} | ||
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | ||
| ||
# Deploy to GHitHub Pages | ||
- name: Deploy to GitHub Pages | ||
uses: JamesIves/github-pages-deploy-action@4.3.3 | ||
with: | ||
branch: gh-pages | ||
folder: build | ||
clean: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,3 +24,4 @@ yarn-debug.log* | |
yarn-error.log* | ||
.vscode/* | ||
.vs/* | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters