Skip to content

Commit

Permalink
CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigidity committed Jul 5, 2024
1 parent efaac36 commit 4ef378d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Publish to GitHub pages

on:
push:
branches: [main]
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
Github-Pages-Release:
timeout-minutes: 10

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Prettier
run: pnpm prettier

- name: Build with Trunk
run: pnpm build

- name: Setup GitHub Pages
uses: actions/configure-pages@v4

- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "./build"

- name: Deploy to GitHub Pages 🚀
id: deployment
uses: actions/deploy-pages@v3
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"typecheck": "tsc"
"typecheck": "tsc",
"prettier": "prettier --check ."
},
"dependencies": {
"@docusaurus/core": "3.4.0",
Expand All @@ -27,6 +28,7 @@
"@docusaurus/module-type-aliases": "3.4.0",
"@docusaurus/tsconfig": "3.4.0",
"@docusaurus/types": "3.4.0",
"prettier": "^3.3.2",
"typescript": "~5.2.2"
},
"browserslist": {
Expand Down
10 changes: 10 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4ef378d

Please sign in to comment.