-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (36 loc) · 1.03 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
name: Deploy to GitHub Pages
on:
workflow_dispatch:
branches:
- master
env:
NODE-ENV: production
VUE_APP_API_KEY: ${{ secrets.VUE_APP_API_KEY }}
VUE_APP_FIREBASE_API_KEY: ${{ secrets.VUE_APP_FIREBASE_API_KEY }}
VUE_APP_FIREBASE_DATABASE_URL: ${{ secrets.VUE_APP_FIREBASE_DATABASE_URL }}
jobs:
install:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: pnpm/action-setup@v2
with:
version: 7.25.0
- name: install deps
run: pnpm install
- name: build app
run: pnpm build
- name: Deploy
run: |
cd dist
ln -s index.html 404.html
git config --global user.email "CI@stozen.com"
git config --global user.name "CI"
git init
git add -A
git commit -m 'deploy'
git push -f https://fos7er:${{ secrets.GH_TOKEN }}@github.com/fos7er/vuetify-kino-searcher.git master:gh-pages
shell: bash