-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (38 loc) · 1.02 KB
/
build-and-deploy.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: Build and deploy
on:
push:
branches:
- source
jobs:
build-and-deploy:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v4
with:
git_commit_gpgsign: true
git_user_signingkey: true
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
- name: Install Yarn
run: npm i yarn -g
- name: Install dependencies
run: yarn
- name: Build
run: yarn run build
env:
CI: true
- name: GitHub Pages deploy
uses: crazy-max/ghaction-github-pages@v2
with:
author: Dmitrij Podabed <[email protected]>
build_dir: public
commit_message: Updates
committer: Dmitrij Podabed <[email protected]>
fqdn: itfarrier.com
keep_history: true
target_branch: master
verbose: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}