Skip to content

Merge pull request #110 from gabrielogregorio/dev #6

Merge pull request #110 from gabrielogregorio/dev

Merge pull request #110 from gabrielogregorio/dev #6

name: deploy to gh pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: checkout
uses: actions/checkout@v2
- name: use node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies and test
run: yarn --frozen-lockfile
- name: build storybook
run: yarn storybook:build
- name: deploy with gh-pages
run: |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/gabrielogregorio/valorant-tips.git
npx gh-pages -d storybook-static -u "github-actions-bot <[email protected]>"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}