diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 743bbe950f6..6da96c07d75 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,7 +44,6 @@ jobs: npm install npm run dash cp CONTRIBUTORS.svg .deploy - rm -rf .deploy/linux-command.docset - name: Create Tag id: create_tag @@ -60,15 +59,6 @@ jobs: run: | echo "${{steps.create_tag.outputs.versionNumber}}https://jaywcjlove.github.io/linux-command/linux-command.docset.tgz" > .deploy/linux-command-docset.xml - - name: Deploy - uses: peaceiris/actions-gh-pages@v3 - with: - commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}' - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./.deploy - user_name: github-actions[bot] - user_email: github-actions[bot]@users.noreply.github.com - - name: Generate Changelog id: changelog uses: jaywcjlove/changelog-generator@main @@ -122,6 +112,17 @@ jobs: http://localhost:9665/ ``` + - run: rm -rf .deploy/linux-command.docset + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + commit_message: '[${{steps.tag_version.outputs.tag}}] ${{ github.event.head_commit.message }}' + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./.deploy + user_name: github-actions[bot] + user_email: github-actions[bot]@users.noreply.github.com + - run: npm publish continue-on-error: true name: 📦 linux-command publish to NPM