-
Notifications
You must be signed in to change notification settings - Fork 8
37 lines (37 loc) · 885 Bytes
/
deploy.yml
File metadata and controls
37 lines (37 loc) · 885 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: Build and Deploy
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Cache deps
uses: actions/cache@v4
with:
path: |
**/node_modules
key: deps-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
deps-
- name: Install ⚙️
run: |
yarn install
- name: Build 🔨
env:
NODE_ENV: production
run: |
yarn build
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
repository-name: anycable/anycable.github.io
branch: gh-pages
folder: dist
clean: true
token: ${{ secrets.ACCESS_TOKEN }}