Merge pull request #12 from Availity/docs/uikit #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Publish Release | |
on: | |
push: | |
branches: [source] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: source | |
token: ${{ secrets.BOT_TOKEN }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: 18 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "::set-output name=dir::$(yarn cache dir)" | |
- uses: actions/cache@v1 | |
id: yarn-cache | |
with: | |
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-yarn- | |
- run: yarn install | |
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
- run: git config --global user.email ${{ secrets.GH_EMAIL }} | |
- run: git config --global user.name ${{ secrets.GH_USER }} | |
- run: yarn build | |
- uses: crazy-max/ghaction-github-pages@v2 | |
with: | |
target_branch: master | |
build_dir: build | |
commit_message: deployed docs | |
committer: ${{ secrets.GH_USER }} ${{ secrets.GH_EMAIL }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} |