Skip to content

Commit

Permalink
Add GitHub Pages release CI (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
huacnlee authored May 27, 2024
1 parent 33e0f8a commit 9602afb
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/release-website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
on:
push:
branches:
- main
- release-website
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
- name: Install
run: bun install
- name: Build
working-directory: autocorrect-website
run: |
bun run build
cp dist/index.html dist/404.html
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
path: "autocorrect-website/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
2 changes: 1 addition & 1 deletion autocorrect-website/src/welcome.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export const Welcome = () => {
</a>
</div>
</div>
<div className="intro">
<div className="intro mb-6">
<p>
A linter and formatter for help you improve copywriting, to correct
spaces, punctuations between CJK (Chinese, Japanese, Korean).
Expand Down

0 comments on commit 9602afb

Please sign in to comment.