Gslux 705 modify feature selection and sync between map and UI #112
This file contains 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: CI cleanup | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | |
on: | |
pull_request: | |
types: [closed] | |
jobs: | |
histoire-cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- run: echo "::set-env name=BRANCH_NAME::${GITHUB_HEAD_REF}" | |
- name: remove directory in gh pages | |
run: | | |
echo "Removing GH pages directory: ${{env.BRANCH_NAME}}" | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "github-actions[bot]@users.noreply.github.com" | |
touch .empty | |
npx gh-pages --dist . --src .empty --remove "${{env.BRANCH_NAME}}" --no-history --repo "https://${GITHUB_ACTOR}:${{secrets.GITHUB_TOKEN}}@github.com/${GITHUB_REPOSITORY}.git" |