Skip to content

Commit

Permalink
ci: add workflow config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 2, 2024
1 parent c845e90 commit e5c24c3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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

- name: Create idoc config.
run: |
cat > idoc.yml << EOF
site: "TextSound Saver"
keywords: Folder,FolderIcon,IconizeFolder,Icon
favicon: assets/favicon.ico
logo: ./assets/logo.png
openSource: https://github.com/jaywcjlove/IconizeFolder
tocs: false
element:
wrapper: style=max-width:720px;
menus:
Home: index.html
Apps: https://wangchujiang.com/#/app
About: https://wangchujiang.com/#/about
sideEffectFiles:
- README.zh.md
footer: |
<a href="https://wangchujiang.com/#/app" target="_blank">App</a> •
<a href="https://wangchujiang.com/#/projects" target="_blank">Projects</a> •
<a href="https://wangchujiang.com/#/sponsor" target="_blank">Sponsor</a> •
<a href="https://wangchujiang.com/DevHub/" target="_blank">DevHub</a> •
<a href="https://wangchujiang.com/#/app" target="_blank">More Apps</a><br /><br />
Generated by <a href="https://github.com/jaywcjlove/idoc" target="_blank">idoc</a> v{{idocVersion}}
EOF
- run: npm install idoc@1.28.1 -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

0 comments on commit e5c24c3

Please sign in to comment.