Skip to content

Commit

Permalink
update bot
Browse files Browse the repository at this point in the history
  • Loading branch information
lianzhao committed Nov 6, 2020
1 parent dd0c3be commit 2363933
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Pages
on:
push:
branches:
- master
- chinese-translation
pull_request:

jobs:
Expand Down Expand Up @@ -37,18 +37,18 @@ jobs:
- name: Build for production
uses: Borales/actions-yarn@v2.1.0
env:
VUE_APP_PUBLIC_URL: https://roshar.17thshard.com/
VUE_APP_PUBLIC_URL: ./
with:
cmd: build
- name: Create CNAME
uses: finnp/create-file-action@master
env:
FILE_NAME: "./dist/release/CNAME"
FILE_DATA: "roshar.17thshard.com"
# - name: Create CNAME
# uses: finnp/create-file-action@master
# env:
# FILE_NAME: "./dist/release/CNAME"
# FILE_DATA: "roshar.17thshard.com"

- name: Deploy
uses: maxheld83/ghpages@v0.2.1
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[deploy]')
# if: github.event_name == 'push' && github.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[deploy]')
env:
GH_PAT: ${{ secrets.GH_PAT }}
BUILD_DIR: dist/release/

0 comments on commit 2363933

Please sign in to comment.