Skip to content

Commit

Permalink
ci: add workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Feb 27, 2024
1 parent beaa07d commit 2ce0fdc
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: CI/CD
on:
push:
branches:
- main

jobs:
build-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'

- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "Rehype Rewrite"
menus:
Home: index.html
DevHub: https://jaywcjlove.github.io/DevHub/
EOF
- run: npm install idoc@1.27.2 -g
- run: idoc

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
commit_message: ${{ github.event.head_commit.message }}
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ Using the TextSoundSaver application, you can convert text into realistic synthe
![TextSoundSaver Screenshots 1](https://github.com/jaywcjlove/TextSoundSaver/assets/1680273/109222a2-fffd-439f-b4d7-82db960909db)

![TextSoundSaver Screenshots 2](https://github.com/jaywcjlove/TextSoundSaver/assets/1680273/b4a005d5-28ca-44e1-ae83-5803640f4ddc)

## Related

[More Apps by Me](https://wangchujiang.com/#/app)

0 comments on commit 2ce0fdc

Please sign in to comment.