Skip to content

Send and receive SMS messages using your Android phone programmatically via a simple HTTP API

Add firebase deployment

Acho Arnold35a2bc8cd333
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ea701010..eaff2af7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,9 +4,7 @@ on:
push:
branches:
- main
- pull_request:
- branches:
- - main
+
defaults:
run:
working-directory: ./web
@@ -51,3 +49,14 @@ jobs:
- name: Run tests 🧪
run: yarn test
+
+ - name: Build 🏗️
+ run: yarn generate
+
+ - name: Deploy 🚀
+ - uses: FirebaseExtended/action-hosting-deploy@v0
+ with:
+ repoToken: '${{ secrets.GITHUB_TOKEN }}'
+ channelId: live
+ firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_HTTPSMS_86C51 }}'
+ projectId: httpsms-86c51
diff --git a/web/.firebaserc b/web/.firebaserc
new file mode 100644
index 00000000..cad220fc
--- /dev/null
+++ b/web/.firebaserc
@@ -0,0 +1,5 @@
+{
+ "projects": {
+ "default": "httpsms-86c51"
+ }
+}
diff --git a/web/firebase.json b/web/firebase.json
new file mode 100644
index 00000000..2c33c295
--- /dev/null
+++ b/web/firebase.json
@@ -0,0 +1,16 @@
+{
+ "hosting": {
+ "public": "dist",
+ "ignore": [
+ "firebase.json",
+ "**/.*",
+ "**/node_modules/**"
+ ],
+ "rewrites": [
+ {
+ "source": "**",
+ "destination": "/index.html"
+ }
+ ]
+ }
+}
diff --git a/web/layouts/default.vue b/web/layouts/default.vue
index a022072c..c6f87093 100644
--- a/web/layouts/default.vue
+++ b/web/layouts/default.vue
@@ -2,9 +2,6 @@
<v-app dark>
<v-navigation-drawer
:width="400"
- v-model="drawer"
- :mini-variant="miniVariant"
- :clipped="clipped"
fixed
app
>
@@ -25,41 +22,11 @@
</v-list-item>
</v-list>
</v-navigation-drawer>
- <v-app-bar :clipped-left="clipped" fixed app>
- <v-app-bar-nav-icon @click.stop="drawer = !drawer" />
- <v-btn icon @click.stop="miniVariant = !miniVariant">
- <v-icon>mdi-{{ `chevron-${miniVariant ? 'right' : 'left'}` }}</v-icon>
- </v-btn>
- <v-btn icon @click.stop="clipped = !clipped">
- <v-icon>mdi-application</v-icon>
- </v-btn>
- <v-btn icon @click.stop="fixed = !fixed">
- <v-icon>mdi-minus</v-icon>
- </v-btn>
- <v-toolbar-title v-text="title" />
- <v-spacer />
- <v-btn icon @click.stop="rightDrawer = !rightDrawer">
- <v-icon>mdi-menu</v-icon>
- </v-btn>
- </v-app-bar>
<v-main>
<v-container>
<Nuxt />
</v-container>
</v-main>
- <v-navigation-drawer v-model="rightDrawer" :right="right" temporary fixed>
- <v-list>
- <v-list-item @click.native="right = !right">
- <v-list-item-action>
- <v-icon light> mdi-repeat </v-icon>
- </v-list-item-action>
- <v-list-item-title>Switch drawer (click me)</v-list-item-title>
- </v-list-item>
- </v-list>
- </v-navigation-drawer>
- <v-footer :absolute="!fixed" app>
- <span>&copy; {{ new Date().getFullYear() }}</span>
- </v-footer>
</v-app>
</template>