ci: remove deploy in pipeline (replace with vercel)
This commit is contained in:
parent
eaa211e159
commit
5e8b682b84
|
|
@ -1,53 +0,0 @@
|
|||
name: Deploy
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: ["Test"]
|
||||
branches: [master]
|
||||
types: [completed]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
# https://github.community/t/workflow-run-success-type-reference/133194
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
|
||||
env:
|
||||
CI: true
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
|
||||
# https://github.com/microsoft/TypeScript/wiki/Node-Target-Mapping
|
||||
- name: Use Node.js 14.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 14.x
|
||||
|
||||
- name: Get yarn cache
|
||||
id: yarn-cache
|
||||
run: echo "::set-output name=dir::$(yarn cache dir)"
|
||||
|
||||
- uses: actions/cache@v1
|
||||
with:
|
||||
path: ${{ steps.yarn-cache.outputs.dir }}
|
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-yarn-
|
||||
|
||||
- name: Install dependencies
|
||||
run: yarn install --skip-integrity-check --non-interactive --no-progress
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
yarn build --base=/vue3-realworld-example-app/
|
||||
echo > dist/.nojekyll
|
||||
|
||||
- name: Deploy
|
||||
uses: s0/git-publish-subdir-action@master
|
||||
env:
|
||||
REPO: self
|
||||
BRANCH: gh-pages
|
||||
FOLDER: dist
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Loading…
Reference in New Issue