-
Notifications
You must be signed in to change notification settings - Fork 9
51 lines (45 loc) · 1.29 KB
/
deploy-landingpage.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
46
47
48
49
50
51
name: Deploy Landingpage
on:
push:
paths:
- packages/landingpage/**
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- uses: actions/checkout@v2
- uses: ./.github/workflows/dependencies-install
- name: Build landingpage ⚒️
run: yarn nx run landingpage:build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NX_REJECT_UNKNOWN_LOCAL_CACHE: 0
- name: Upload build output ⬆️
uses: actions/upload-artifact@v2
with:
name: landingpage
path: packages/landingpage/out/
deploy-landingpage:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/checkout@v2
with:
ref: pages
- uses: actions/download-artifact@v2
with:
name: landingpage
path: ./artifact
- name: Deploy to Github Pages 🚀
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: pages # The branch the action should deploy to.
folder: ./artifact # The folder the action should deploy.
commit-message: Deploy landingpage
clean-exclude: |
.gitlab-ci.yml
version
unicorn
hosted-versions.json