From ddfe2fc4ab499d1614fc613e176d489ef19d422b Mon Sep 17 00:00:00 2001 From: candle Date: Sat, 25 May 2024 14:18:38 +0100 Subject: [PATCH] build html for pull requests --- .github/workflows/branch.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/branch.yaml diff --git a/.github/workflows/branch.yaml b/.github/workflows/branch.yaml new file mode 100644 index 0000000..2b73ded --- /dev/null +++ b/.github/workflows/branch.yaml @@ -0,0 +1,22 @@ +name: branch + +on: pull_request + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: install node + uses: actions/setup-node@v4 + with: + node-version: '20.x' + - name: install pug & build + run: | + npm install pug-cli -g + pug --pretty -o site/bipsi --basedir src -- src/index.pug + - name: upload page + uses: actions/upload-artifact@v4 + with: + name: bipsi.html + path: ./site/bipsi/index.html