diff --git a/.github/workflows/build_release_vitepress.yml b/.github/workflows/build_release_vitepress.yml index 576fda7..c1a7315 100644 --- a/.github/workflows/build_release_vitepress.yml +++ b/.github/workflows/build_release_vitepress.yml @@ -3,7 +3,7 @@ on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: - branches: [main] + branches: [main, master] concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true @@ -39,32 +39,32 @@ jobs: name: Deploy needs: [build] steps: - #- name: Checkout - # uses: actions/checkout@v3 - # with: - # fetch-depth: 0 - #- name: Create Directory - # run: mkdir -p dist + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Create Directory + run: mkdir -p dist - name: Download artifact uses: actions/download-artifact@v2 with: name: production-files path: ./dist - #- name: Setup node - # uses: actions/setup-node@v3 - # with: - # node-version: 18 - #- run: npm install -g conventional-changelog-conventionalcommits - #- run: npm install -g semantic-release@v19.0.5 - #- run: npm install -g @semantic-release/exec - #- run: npm install -g @semantic-release/git - #- run: npm install -g @semantic-release/release-notes-generator - #- run: npm install -g @semantic-release/changelog - #- run: npm install -g @semantic-release/github - #- name: Release - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # run: semantic-release + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 18 + - run: npm install -g conventional-changelog-conventionalcommits + - run: npm install -g semantic-release@v19.0.5 + - run: npm install -g @semantic-release/exec + - run: npm install -g @semantic-release/git + - run: npm install -g @semantic-release/release-notes-generator + - run: npm install -g @semantic-release/changelog + - run: npm install -g @semantic-release/github + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: semantic-release - name: Deploy to GitHub Pages uses: peaceiris/actions-gh-pages@v3.9.2 with: diff --git a/.releaserc b/.releaserc index a33b4ab..b37a7b9 100644 --- a/.releaserc +++ b/.releaserc @@ -1,8 +1,7 @@ { "branches": [ "main", - "master", - "docs" + "master" ], "plugins": [ [