Skip to content

Commit

Permalink
chore: update workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
atomiks committed Nov 3, 2021
1 parent f5c0a18 commit 76b9083
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 22 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/cd.yml
@@ -0,0 +1,29 @@
name: CD
on: [push]
env:
CI: true

jobs:
publish:
if:
${{ startsWith(github.event.commits[0].message, 'docs:') ||
startsWith(github.event.commits[0].message, 'release:') }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
npm install
npm run clean
npm run build:ci
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: ./website/public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 0 additions & 22 deletions .github/workflows/ci.yml
Expand Up @@ -36,25 +36,3 @@ jobs:
- run: npm run test:functional
env:
PUPPETEER_BROWSER: chromium

publish:
if: ${{ startsWith(github.event.commits[0].message, 'docs:') }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./website
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Build
run: |
npm install
npm run clean
npm run build:ci
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: public
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 76b9083

Please sign in to comment.