From 9ec95f985c40ae3284bafba07fc73aa6332db666 Mon Sep 17 00:00:00 2001 From: Dimitri Podborski Date: Thu, 9 Jan 2025 19:29:22 -0800 Subject: [PATCH] setup auto publish close #49 --- .github/workflows/auto-publish.yml | 42 ++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/auto-publish.yml diff --git a/.github/workflows/auto-publish.yml b/.github/workflows/auto-publish.yml new file mode 100644 index 0000000..3224979 --- /dev/null +++ b/.github/workflows/auto-publish.yml @@ -0,0 +1,42 @@ +name: Auto-Publish +on: + push: + branches: [master] + +permissions: + contents: read + pages: write + id-token: write + +# Allow one concurrent deployment +concurrency: + group: pages + cancel-in-progress: true + +jobs: + master: + name: Compile and deploy + runs-on: ubuntu-20.04 + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: 3.12 + cache: 'pip' + - run: pip install bikeshed + + - name: Run bikeshed + run: | + bikeshed spec + mkdir dist + cp *.html dist + + - name: Upload artifact + uses: actions/upload-pages-artifact@v1 + with: + path: ./dist + + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v1