Skip to content

Commit f36e468

Browse files
authored
Merge pull request #2 from openscd/ci/deploy-build-output
ci(deploy): Deploy build output
2 parents 6983caf + 016fb94 commit f36e468

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Deploy
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
build-and-deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v3
19+
with:
20+
node-version: '20'
21+
22+
- name: Install and build
23+
run: |
24+
npm ci
25+
npm run build
26+
27+
- name: Deploy
28+
uses: JamesIves/github-pages-deploy-action@v4
29+
with:
30+
folder: 'dist'
31+
branch: 'deploy'

0 commit comments

Comments
 (0)