Skip to content

Commit 35a2bc8

Browse files
committed
Add firebase deployment
1 parent 5e49d5d commit 35a2bc8

4 files changed

Lines changed: 33 additions & 36 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
branches:
9-
- main
7+
108
defaults:
119
run:
1210
working-directory: ./web
@@ -51,3 +49,14 @@ jobs:
5149

5250
- name: Run tests 🧪
5351
run: yarn test
52+
53+
- name: Build 🏗️
54+
run: yarn generate
55+
56+
- name: Deploy 🚀
57+
- uses: FirebaseExtended/action-hosting-deploy@v0
58+
with:
59+
repoToken: '${{ secrets.GITHUB_TOKEN }}'
60+
channelId: live
61+
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}'
62+
projectId: httpsms-86c51

web/.firebaserc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"projects": {
3+
"default": "httpsms-86c51"
4+
}
5+
}

web/firebase.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"hosting": {
3+
"public": "dist",
4+
"ignore": [
5+
"firebase.json",
6+
"**/.*",
7+
"**/node_modules/**"
8+
],
9+
"rewrites": [
10+
{
11+
"source": "**",
12+
"destination": "/index.html"
13+
}
14+
]
15+
}
16+
}

web/layouts/default.vue

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
<v-app dark>
33
<v-navigation-drawer
44
:width="400"
5-
v-model="drawer"
6-
:mini-variant="miniVariant"
7-
:clipped="clipped"
85
fixed
96
app
107
>
@@ -25,41 +22,11 @@
2522
</v-list-item>
2623
</v-list>
2724
</v-navigation-drawer>
28-
<v-app-bar :clipped-left="clipped" fixed app>
29-
<v-app-bar-nav-icon @click.stop="drawer = !drawer" />
30-
<v-btn icon @click.stop="miniVariant = !miniVariant">
31-
<v-icon>mdi-{{ `chevron-${miniVariant ? 'right' : 'left'}` }}</v-icon>
32-
</v-btn>
33-
<v-btn icon @click.stop="clipped = !clipped">
34-
<v-icon>mdi-application</v-icon>
35-
</v-btn>
36-
<v-btn icon @click.stop="fixed = !fixed">
37-
<v-icon>mdi-minus</v-icon>
38-
</v-btn>
39-
<v-toolbar-title v-text="title" />
40-
<v-spacer />
41-
<v-btn icon @click.stop="rightDrawer = !rightDrawer">
42-
<v-icon>mdi-menu</v-icon>
43-
</v-btn>
44-
</v-app-bar>
4525
<v-main>
4626
<v-container>
4727
<Nuxt />
4828
</v-container>
4929
</v-main>
50-
<v-navigation-drawer v-model="rightDrawer" :right="right" temporary fixed>
51-
<v-list>
52-
<v-list-item @click.native="right = !right">
53-
<v-list-item-action>
54-
<v-icon light> mdi-repeat </v-icon>
55-
</v-list-item-action>
56-
<v-list-item-title>Switch drawer (click me)</v-list-item-title>
57-
</v-list-item>
58-
</v-list>
59-
</v-navigation-drawer>
60-
<v-footer :absolute="!fixed" app>
61-
<span>&copy; {{ new Date().getFullYear() }}</span>
62-
</v-footer>
6330
</v-app>
6431
</template>
6532

0 commit comments

Comments
 (0)