forked from airalab/sensors.social
-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (31 loc) · 865 Bytes
/
main.yml
File metadata and controls
37 lines (31 loc) · 865 Bytes
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
name: github pages
on:
push:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: Setup Node & Cache deps
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "yarn"
cache-dependency-path: yarn.lock
- run: yarn install --frozen-lockfile
- run: yarn build
env:
VITE_CONFIG_ENV: ${{ vars.VITE_CONFIG_ENV }}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
clean: true
cname: sensors.cy
- name: Set commit output
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT