-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 999 Bytes
/
Copy pathdeploy.yml
File metadata and controls
39 lines (36 loc) · 999 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
38
39
name: Deploy To Self Branch
on:
push:
branches:
- master
workflow_dispatch:
defaults:
run:
working-directory: bamba-admin-pwa
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 16.x
- name: query ngrok tunnels
id: query
run: |
response=$(curl -X GET -H "Authorization: Bearer ${{ secrets.NGROK_API_KEY }}" -H "Ngrok-Version: 2" https://api.ngrok.com/tunnels --insecure)
echo $response
echo $response > src/assets/tunnels.json
- run: npm ci
working-directory: bamba-admin-pwa
- run: npm run build --if-present
working-directory: bamba-admin-pwa
- name: Deploy
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: bamba-admin-pwa/dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}