-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (36 loc) · 1.09 KB
/
deploy.master.yml
File metadata and controls
43 lines (36 loc) · 1.09 KB
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
name: Deploy
on:
push:
branches:
- master
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the Repo
uses: actions/checkout@v2
- name: Use Node.js '14'
uses: actions/setup-node@v2
with:
node-version: '14'
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Install Yarn dependencies
run: yarn install --frozen-lockfile
working-directory: website
- name: Run build
run: yarn build
working-directory: website
- name: Pushes to another repository
uses: cpina/github-action-push-to-another-repository@main
env:
API_TOKEN_GITHUB: ${{ secrets.GH_TOKEN }}
with:
source-directory: 'website/build/linkpoolio.github.io'
destination-github-username: 'linkpoolio'
destination-repository-name: 'linkpoolio.github.io'
user-email: ${{ secrets.GH_EMAIL }}
target-branch: master