Skip to content

Commit

Permalink
[Feature] Deploy gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
sreucherand authored Feb 2, 2021
1 parent ba9d70d commit a6bdff8
Showing 1 changed file with 30 additions and 2 deletions.
32 changes: 30 additions & 2 deletions .github/workflows/release.yml → .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
name: Release
name: Publish

on:
push:
branches:
- master

jobs:
tag:
publish:
if: ${{ startsWith(github.event.head_commit.message, '[Release]') == false }}

runs-on: ubuntu-latest
Expand All @@ -32,3 +32,31 @@ jobs:
github_token: ${{ secrets.BOT_PAT }}
branch: master
tags: true

- name: Restore node_modules from cache
uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}

- name: Build library
run: |
yarn
yarn build
- name: Publish
run: echo 'PUBLISHING...'
# run: npm publish

- name: Build example
run: |
yarn
yarn build
working-directory: example

- name: Deploy
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
BRANCH: gh-pages
FOLDER: example/public
GITHUB_TOKEN: ${{ secrets.BOT_PAT }}

0 comments on commit a6bdff8

Please sign in to comment.