Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Cleans all preview pages for gh-pages #617

Cleans all preview pages for gh-pages

Cleans all preview pages for gh-pages #617

Workflow file for this run

---
name: Cleans all preview pages for gh-pages
on:
schedule:
- cron: "0 0 * * *"
jobs:
clean:
name: Clean
runs-on: ubuntu-latest
steps:
- name: ⏬ Checkout repo
uses: actions/checkout@v4
- name: 📥 Get gh-pages tar
run: wget -q https://github.com/db-ui/mono/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
id: cleanup
uses: actions/github-script@v7
with:
result-encoding: json
script: |
const { default: cleanUpPages } = await import('${{ github.workspace }}/.github/scripts/cleanup-gh-pages.js');
return await cleanUpPages({github, context});
- name: 🥅 Deploy to GH-Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public