Unpublishing design system for branch cp81_bug_15713 #1199
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Unpublish design system | |
| run-name: Unpublishing design system for branch ${{ github.event.ref }} | |
| on: delete | |
| jobs: | |
| unpublish-design-system: | |
| name: Unpublish design system | |
| if: github.event.ref_type == 'branch' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Extract branch name | |
| run: | | |
| branch_name="${{ github.event.ref }}" | |
| branch_name=${branch_name#refs/heads/} | |
| echo "branch_name=${branch_name}" >> $GITHUB_ENV | |
| - name: Update index.html and remove branch directory | |
| uses: ./.github/actions/update-gh-pages-index | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| branch_to_delete: ${{ env.branch_name }} |