frontend
This commit is contained in:
41
maxkey-web-frontend/maxkey-web-mgt-app/.github/workflows/deploy-site.yml
vendored
Normal file
41
maxkey-web-frontend/maxkey-web-mgt-app/.github/workflows/deploy-site.yml
vendored
Normal file
@@ -0,0 +1,41 @@
|
||||
name: Deploy website
|
||||
|
||||
# on: push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'publish-**'
|
||||
|
||||
jobs:
|
||||
build-and-deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@master
|
||||
|
||||
- uses: borales/actions-yarn@v2.3.0
|
||||
with:
|
||||
cmd: install
|
||||
|
||||
- name: build
|
||||
shell: bash
|
||||
run: bash ./scripts/_ci/deploy-pipelines.sh
|
||||
|
||||
- name: deploy-to-surge
|
||||
uses: dswistowski/surge-sh-action@v1
|
||||
with:
|
||||
login: ${{ secrets.SURGE_LOGIN }}
|
||||
token: ${{ secrets.SURGE_TOKEN }}
|
||||
domain: https://ng-alain.surge.sh
|
||||
project: ./dist
|
||||
|
||||
- name: deploy-to-gh-pages
|
||||
uses: peaceiris/actions-gh-pages@v2
|
||||
env:
|
||||
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }}
|
||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
PUBLISH_BRANCH: gh-pages
|
||||
PUBLISH_DIR: ./dist
|
||||
with:
|
||||
emptyCommits: false
|
||||
Reference in New Issue
Block a user