-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (39 loc) · 1.37 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
name: Publish Chronicle
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest
name: Build and Push
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install all dependencies
run: npm install
- name: Build
run: npm run build
env:
VUE_APP_MOVIE_DB_KEY: ${{ secrets.MOVIE_DB_KEY }}
VUE_APP_FIREBASE_API_KEY: ${{ secrets.FIREBASE_API_KEY }}
VUE_APP_FIREBASE_AUTH_DOMAIN: ${{ secrets.FIREBASE_AUTH_DOMAIN }}
VUE_APP_FIREBASE_PROJECT_ID: ${{ secrets.FIREBASE_PROJECT_ID }}
VUE_APP_FIREBASE_STOREAGE_BUCKET: ${{ secrets.FIREBASE_STOREAGE_BUCKET }}
VUE_APP_FIREBASE_MESSAGE_SENDER_ID: ${{ secrets.FIREBASE_MESSAGE_SENDER_ID }}
VUE_APP_FIREBASE_APP_ID: ${{ secrets.FIREBASE_APP_ID }}
VUE_APP_COMMIT: ${{ github.sha }}
VUE_APP_UNSPLASH_API_KEY: ${{ secrets.UNSPLASH_API_KEY }}
- name: Domain
run: echo 'chronicle.robdavis.dev' > dist/CNAME
- name: Push
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: dist
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MESSAGE: "Build: ({sha}) {msg}"