Skip to content

Commit

Permalink
Updated build, linting
Browse files Browse the repository at this point in the history
Fixed readme
  • Loading branch information
james-pre committed Apr 18, 2024
1 parent 409b4c4 commit 6a0f143
Show file tree
Hide file tree
Showing 6 changed files with 162 additions and 195 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- main
- master
workflow_dispatch:
workflow_call:
pull_request:

jobs:
ci:
Expand Down Expand Up @@ -39,7 +39,6 @@ jobs:
- name: Linting
run: npm run lint

# Once unit tests are working
#- name: Unit tests
# run: npm run test

Expand All @@ -52,6 +51,10 @@ jobs:
permissions:
contents: write
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -67,9 +70,12 @@ jobs:
- name: Build docs
run: npm run build:docs

- name: Deploy docs
uses: peaceiris/actions-gh-pages@v3
- name: Upload docs artifact
uses: actions/upload-pages-artifact@v3
if: github.event_name != 'pull_request'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_branch: docs
path: ./docs
- name: 'Deploy docs'
id: deploy
if: github.event_name != 'pull_request'
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
permissions:
contents: write
id-token: write
pages: write
release:
runs-on: ubuntu-latest
needs: ci
Expand Down
Loading

0 comments on commit 6a0f143

Please sign in to comment.