1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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
|