Skip to content

docs: update react-country-dropdown to 2.2.0 and simplify json format… #16

docs: update react-country-dropdown to 2.2.0 and simplify json format…

docs: update react-country-dropdown to 2.2.0 and simplify json format… #16

Workflow file for this run

name: deploy docs website
on:
# runs on pushes targeting the default branch
push:
branches: ['master']
paths:
- 'docs/**'
- '.github/workflows/deploy-docs.yml'
# allows you to run this workflow manually from the actions tab
workflow_dispatch:
# sets the github_token permissions to allow deployment to github pages
permissions:
contents: read
pages: write
id-token: write
# allow one concurrent deployment
concurrency:
group: 'pages'
cancel-in-progress: true
jobs:
# single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./docs
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up node
uses: actions/setup-node@v4
with:
node-version: '20'
- name: set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: install dependencies
run: pnpm install --no-frozen-lockfile
- name: build
run: pnpm build
- name: setup pages
uses: actions/configure-pages@v4
- name: upload artifact
uses: actions/[email protected]
with:
path: './docs/dist'
- name: deploy to github pages
id: deployment
uses: actions/deploy-pages@v4