43 lines (42 loc) · 1.04 KB
/
publish.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
# DO NOT EDIT: This file was generated.
name: 🚀 Publish
concurrency: ci-${{ github.ref }}
'on':
repository_dispatch:
types:
- contentful-publish
workflow_dispatch: {}
env:
NX_CLOUD_DISTRIBUTED_EXECUTION: false
jobs:
deploy:
name: 🚀 Marmicode
runs-on: ubuntu-latest
environment:
name: Marmicode
url: https://marmicode.io
steps:
- uses: actions/checkout@v3
with:
ref: deployed/marmicode
- uses: actions/cache@v3
with:
path: |
~/.cache/Cypress
.angular
.yarn/unplugged
libs/*/.angular
node_modules/.cache
key: cache-${{ github.run_id }}
restore-keys: |
cache
- uses: actions/setup-node@v3
with:
cache: yarn
node-version: '18'
- name: Install
run: yarn install --immutable
- name: Deploy
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
run: yarn nx run marmicode:deploy:production --skip-nx-cache