-
Notifications
You must be signed in to change notification settings - Fork 47
37 lines (36 loc) · 1.07 KB
/
tag.yml
File metadata and controls
37 lines (36 loc) · 1.07 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
name: 'Tag'
on:
push:
tags:
- 'v18.*'
- '!*alpha*'
jobs:
build-site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: nrwl/nx-set-shas@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
cache: 'yarn'
- run: yarn install --frozen-lockfile
- run: yarn nx build site --configuration=production --skip-nx-cache
- uses: actions-ecosystem/action-regex-match@v2
id: version-match
with:
text: ${{ github.ref_name }}
regex: '^v[0-9]+'
- uses: garygrossgarten/github-action-scp@release
if: ${{ steps.version-match.outputs.match != '' }}
with:
local: './dist/packages/site'
remote: '/var/www/${{ steps.version-match.outputs.match }}.react-devui.com'
host: ${{ secrets.SSH_HOST }}
port: ${{ secrets.SSH_PORT }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASSWORD }}
rmRemote: true
dotfiles: true