Skip to content

Commit

Permalink
setup deployment to gh pages
Browse files Browse the repository at this point in the history
  • Loading branch information
maieutiquer committed Aug 24, 2023
1 parent 0b6976e commit 74e6743
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@ on:
branches: ['main']
pull_request:
branches: ['main']
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false

jobs:
build:
Expand All @@ -20,7 +33,8 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
# - name: Use Node.js ${{ matrix.node-version }}
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
# node-version: ${{ matrix.node-version }}
Expand All @@ -30,3 +44,13 @@ jobs:
- run: yarn prettier:check
- run: yarn lint
- run: yarn build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: './dist'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

0 comments on commit 74e6743

Please sign in to comment.