generated from oluqom/typescript-react-tailwind-vite
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (40 loc) · 1.08 KB
/
main.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
46
47
name: Publish to GitHub Pages CI/CD
on:
push:
branches:
- main
jobs:
build:
permissions:
contents: 'read'
id-token: 'write'
pages: 'write'
actions: 'write'
checks: 'write'
deployments: 'write'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Install dependencies
run: yarn install --prefer-offline
- name: Build application
run: yarn build --outDir dist
# - name: Setup Pages
# uses: actions/configure-pages@v3
# At a minimum this job should upload artifacts using actions/upload-artifact
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}