Skip to content

Commit

Permalink
publish to github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
timothymcmackin committed Jan 4, 2024
1 parent 15676ac commit a4ff32d
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: CD - production

on:
push:
branches: [ docusaurus ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18
- run: npm ci
- run: npm run build
- name: Upload GitHub Pages artifact
uses: actions/[email protected]
with:
path: build

deploy:
needs: build
permissions:
pages: write # to deploy to Pages
id-token: write # to verify that the deployment originates from an appropriate source
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

0 comments on commit a4ff32d

Please sign in to comment.