Skip to content

Commit 7ae0ddd

Browse files
authored
Create build-deploy.yml
1 parent 79df517 commit 7ae0ddd

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build-deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Node.js Build & Push
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [18.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
- run: npm ci
26+
- run: npm run build --if-present
27+
- run: |
28+
git config user.name baumannzone
29+
git config user.email [email protected]
30+
git add ./dist
31+
git commit -m "[Bot] Push dist folder to deploy :v:"
32+
git push origin build-deploy
33+

0 commit comments

Comments
 (0)