12345678910111213141516171819202122232425262728293031323334353637383940 |
- name: Deploy website
- # on: push
- on:
- push:
- branches:
- - 'publish-**'
- jobs:
- build-and-deploy:
- runs-on: ubuntu-latest
- steps:
- - name: checkout
- uses: actions/checkout@master
- - name: install
- run: npm 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
|