From 4d4567f0305192797e502e7541c8d6368d4aa6b1 Mon Sep 17 00:00:00 2001 From: Sander Dijkhuis Date: Fri, 23 Aug 2024 07:08:26 +0200 Subject: [PATCH] Editor workflow --- .github/workflows/editor.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/editor.yml diff --git a/.github/workflows/editor.yml b/.github/workflows/editor.yml new file mode 100644 index 0000000..ff6d40a --- /dev/null +++ b/.github/workflows/editor.yml @@ -0,0 +1,51 @@ +name: Editor + +on: + push: + paths-ignore: + - media/deployment.svg + - Makefile + - README.md + - feedback.md + - prototype.worksheet.sc + - .gitignore + pull_request: + paths-ignore: + - media/deployment.svg + - Makefile + - README.md + - feedback.md + - prototype.worksheet.sc + - .gitignore + +permissions: + contents: write + +jobs: + build: + name: Update Editor’s Copy + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - id: setup + run: date -u "+date=%FT%T" >>"$GITHUB_OUTPUT" + - uses: actions/cache@v3 + with: + path: | + .refcache + .venv + .gems + node_modules + .targets.mk + key: i-d-${{ steps.setup.outputs.date }} + restore-keys: i-d- + - name: Build + uses: martinthomson/i-d-template@v1 + with: + token: ${{ github.token }} + - name: Publish + uses: martinthomson/i-d-template@v1 + if: ${{ github.event_name == 'push' }} + with: + make: gh-pages + token: ${{ github.token }}