From 8e35631d109ecc55cc1bd7e4c7a2997c0013466e Mon Sep 17 00:00:00 2001 From: Marcus Bakker <40516252+marcusbakker@users.noreply.github.com> Date: Thu, 14 May 2020 15:36:05 +0200 Subject: [PATCH] Create update_gh_pages.yml --- .github/workflows/update_gh_pages.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/update_gh_pages.yml diff --git a/.github/workflows/update_gh_pages.yml b/.github/workflows/update_gh_pages.yml new file mode 100644 index 0000000..00cee50 --- /dev/null +++ b/.github/workflows/update_gh_pages.yml @@ -0,0 +1,23 @@ +name: Update the DeTT&CT Editor on GitHub Pages + +# Controls when the action will run. Triggers the workflow on push or pull request events +on: + push: + branches: [ master ] + paths: 'editor/**' + +jobs: + # This workflow contains a single job called "copy" + copy: + runs-on: ubuntu-latest + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + - name: Update DeTT&CT Editor + uses: peaceiris/actions-gh-pages@v3 + with: + personal_token: ${{ secrets.PERSONAL_TOKEN }} + external_repository: rabobank-cdc/dettect-editor + publish_branch: master + publish_dir: ./editor/dist/dettect-editor