chore(deps): Update dependency styled-components to v6.1.0 #28
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
name: Build and Deploy docs | |
on: | |
workflow_dispatch: | |
pull_request: | |
# workflow_run: | |
# workflows: [Release] | |
# types: [completed] | |
permissions: | |
contents: write | |
jobs: | |
build-and-deploy: | |
concurrency: ci-${{ github.ref }} # Recommended if you intend to make multiple deployments in quick succession. | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/checkout@v3 | |
- name: Install Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Install and Build 🔧 | |
run: | | |
cd docs | |
yarn install --frozen-lockfile | |
yarn build | |
- name: Deploy with gh-pages 🚀 | |
run: | | |
cd docs | |
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | |
yarn deploy --user "github-actions-bot <[email protected]>" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: New version notification | |
uses: neolitec/[email protected] | |
with: | |
discord_webhook_url: ${{ secrets.DISCORD_WEBHOOK }} | |
title: '📖 Documentation for ${{ github.repository }} has been deployed' | |
message: 'You can access it [here](https://neolitec.github.io/kevlar-tabs)' |