Skip to content

Commit 74c0aa5

Browse files
authored
Merge pull request #14 from sfuosdev/issue-13/deployment
Issue 13/deployment
2 parents 4a2fb20 + f81d359 commit 74c0aa5

File tree

4 files changed

+258
-4
lines changed

4 files changed

+258
-4
lines changed

.github/workflows/node.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ jobs:
2828
cache: 'npm'
2929
- run: npm ci
3030
- run: npm run build --if-present
31+
32+
- name: Deploy with gh-pages
33+
run: |
34+
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git
35+
npm run deploy -- -u "github-actions-bot <support+actions@github.com>"
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 246 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
{
2-
"name": "sfu-os-dev-club-website",
2+
"name": "Website",
33
"private": true,
44
"version": "0.1.0",
55
"type": "module",
6+
"homepage": "https://sfuosdev.github.io/Website",
67
"scripts": {
8+
"deploy": "gh-pages -d dist",
79
"dev": "vite",
810
"build": "tsc && vite build",
911
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
@@ -26,6 +28,7 @@
2628
"eslint": "^8.56.0",
2729
"eslint-plugin-react-hooks": "^4.6.0",
2830
"eslint-plugin-react-refresh": "^0.4.5",
31+
"gh-pages": "^6.2.0",
2932
"postcss": "^8.4.35",
3033
"tailwindcss": "^3.4.1",
3134
"typescript": "^5.2.2",

vite.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@ import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
33

44
// https://vitejs.dev/config/
5-
export default defineConfig({
6-
plugins: [react()],
7-
})
5+
export default defineConfig({ base: "/{your-repo-name}", plugins: [react()], })

0 commit comments

Comments
 (0)