diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af2e5a6..461d4f2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,11 +13,27 @@ jobs: with: node-version: 20 registry-url: 'https://registry.npmjs.org' + + - name: Create Tag + id: create_tag + uses: jaywcjlove/create-tag-action@main + with: + test: '[R|r]elease[d]\s+[v|V]\d(\.\d+){0,2}' + + - name: Create Released Tag + uses: jaywcjlove/create-tag-action@main + with: + version: ${{ steps.create_tag.outputs.version }} + release: true + body: | + + Create Custom Symbols AppStore + - name: Create idoc config. run: | cat > idoc.yml << EOF - site: "Create Custom Symbols" + site: "Create Custom Symbols {{version:${{ steps.create_tag.outputs.version }}}}" description: A tool that can convert any SVG icon into a custom SF symbol. Your customized SF symbol can be imported into Xcode and utilized in any project based on UIKit or SwiftUI keywords: Symbols,svg,developer tools,productivity,create-custom-symbols favicon: assets/logo.png diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 088e709..8bcb5a4 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -25,6 +25,50 @@ jobs: version: ${{ env.VERSION }} release: true body: | -

- Create Custom Symbols AppStore -

+ + Create Custom Symbols AppStore + + + - name: Create idoc config. + if: steps.create_tag.outputs.successful == 'true' + run: | + cat > idoc.yml << EOF + site: "Iconize Folder {{version:${{steps.create_tag.outputs.version}}}}" + keywords: Folder,FolderIcon,IconizeFolder,Icon + favicon: assets/logo.png + 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.md + - README.zh.md + - terms-of-service.md + - feedback.md + - feedback.zh.md + - terms-of-service.zh.md + - privacy-policy.md + - privacy-policy.zh.md + footer: | + App • + Projects • + Sponsor • + DevHub • + More Apps

+ Generated by idoc v{{idocVersion}} + EOF + + - run: npm install idoc@1 -g + - run: idoc + + - name: Deploy + uses: peaceiris/actions-gh-pages@v4 + with: + commit_message: ${{ github.event.head_commit.message }} + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist \ No newline at end of file