Skip to content

Commit

Permalink
Added a go script
Browse files Browse the repository at this point in the history
  • Loading branch information
g9aerospace committed Apr 12, 2024
1 parent a57a58b commit 524fe7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 20 deletions.
21 changes: 2 additions & 19 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,11 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v2

- name: Change directory to frontend
run: cd frontend

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '21.7.2'

- name: Change directory to frontend
run: cd frontend

- name: Install dependencies
run: npm install

- name: Change directory to frontend
run: cd frontend

- name: Build
run: npm run build
- name: Build-&-Deploy
run: npm run go

- name: Change directory to frontend
run: cd frontend

- name: Deploy
run: npm run deploy
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0",
"description": "The KSPCommunity Website",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"go": "cd frontend && npm install && npm run build && npm run deploy"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 524fe7a

Please sign in to comment.