You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
938 B
42 lines
938 B
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
|