Skip to content

Commit

Permalink
chore: build site with different versions
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejay97 committed Mar 1, 2023
1 parent 8616190 commit 19e2c82
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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

0 comments on commit 19e2c82

Please sign in to comment.