-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 1.09 KB
/
svelte-to-gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Build & deploy Svelte to Github Pages
on:
# Triggers the workflow on push or pull request events but only for the "master" branch
push:
branches: ['master']
pull_request:
branches: ['master']
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run a multi-line script
working-directory: ./app/svelte
run: |
npm install
npm run build
- name: Checking types
working-directory: ./app/svelte
run: npm run check
- name: Linting
working-directory: ./app/svelte
run: npm run lint
- name: Move the Svelte build to the docs folder
run: mv ./app/svelte/build ./docs/app
# Based of https://josecelano.github.io/svelte-deploy-with-github-actions/
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./docs
branch: gh-pages
target-folder: ./docs