From 6a56ef2ecedbde2fc9e440f1c10ecf709623befe Mon Sep 17 00:00:00 2001 From: Fuwn Date: Fri, 17 Mar 2023 21:49:20 -0700 Subject: build(actions): add github pages action --- .github/workflows/static.yml | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/static.yml (limited to '.github/workflows') diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml new file mode 100644 index 0000000..58c06d2 --- /dev/null +++ b/.github/workflows/static.yml @@ -0,0 +1,47 @@ +name: 🚀 Deploy to Pages + +on: + push: + branches: ["main"] + + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +concurrency: + group: "pages" + cancel-in-progress: true + +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout 🛒 + uses: actions/checkout@v3 + - name: Setup Pages 🏗️ + uses: actions/configure-pages@v3 + - name: Build Artifact 🔨 + run: | + wget https://github.com/pdf2htmlEX/pdf2htmlEX/releases/download/v0.18.8.rc1/pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb + sudo apt install pdf2htmlEX-0.18.8.rc1-master-20200630-Ubuntu-bionic-x86_64.deb -y + + wget https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.12.0/tectonic-0.12.0-x86_64.AppImage + chmod +x tectonic-0.12.0-x86_64.AppImage + ./tectonic-0.12.0-x86_64.AppImage --appimage-extract + + ./squashfs-root/usr/bin/tectonic -X build + pdf2htmlEX --zoom 1.3 build/default/default.pdf html/index.html + + - name: Upload Artifact ⬆️ + uses: actions/upload-pages-artifact@v1 + with: + path: "html" + - name: Deploy to GitHub Pages 📦 + id: deployment + uses: actions/deploy-pages@v1 -- cgit v1.2.3