Skip to content

Rename config.toml to hugo.toml, fix deprecated tag #63

Rename config.toml to hugo.toml, fix deprecated tag

Rename config.toml to hugo.toml, fix deprecated tag #63

Workflow file for this run

name: Delete preview on PR close
on:
pull_request:
types: [closed]
jobs:
delete_preview:
runs-on: ubuntu-20.04
env:
PR_PATH: pull/${{github.event.number}}
steps:
- name: Make empty dir
run: mkdir public
- name: Delete folder
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
destination_dir: ${{ env.PR_PATH }}
- name: Comment on PR
uses: hasura/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
repository: ${{ github.repository }}
number: ${{ github.event.number }}
id: deploy-preview
message: "🪓 PR closed, deleted preview at https://github.com/${{ github.repository }}/tree/gh-pages/${{ env.PR_PATH }}/"