Skip to content

Update 99-add-issue-to-project.yml #61

Update 99-add-issue-to-project.yml

Update 99-add-issue-to-project.yml #61

Workflow file for this run

name: Cleans all preview pages for gh-pages
on:
push:
branches:
- main
- develop
jobs:
clean:
name: Clean
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
- name: 🔄 Init Cache
uses: ./.github/actions/npm-cache
- name: 📥 Get gh-pages tar
run: wget -q https://github.com/db-ui/cicd-playground/tarball/gh-pages
- name: ➕ Create public dir
run: mkdir public
- name: 📦 Unpack Tar
run: tar -zxf gh-pages -C public --strip-components 1
- name: 🗑️ Clean all preview pages
run: node scripts/cleanup-gh-pages.js
- name: 🥅 Deploy to GH-Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public