Skip to content

Commit d3bc825

Browse files
committed
Workflows
1 parent 13026a1 commit d3bc825

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: GS Editor Deployment
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
deploy:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
with:
16+
ref: build
17+
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '18'
22+
23+
- name: Install Dependencies
24+
run: npm install
25+
26+
- name: Build Project
27+
run: npm run build
28+
29+
- name: Copy Build Files
30+
run: |
31+
cp -r dist/* .
32+
rm -rf dist
33+
34+
- name: Commit and Push Changes
35+
run: |
36+
git config user.name "GitHub Actions"
37+
git config user.email "attachment.aditya@gmail.com"
38+
git add .
39+
git commit -m "Deploy GS Editor"
40+
git push origin build
41+

0 commit comments

Comments
 (0)