diff options
| author | Fuwn <[email protected]> | 2023-03-17 21:49:20 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-03-17 21:49:20 -0700 |
| commit | 6a56ef2ecedbde2fc9e440f1c10ecf709623befe (patch) | |
| tree | 693dc0d2de50a8e54898dd1950626f5fbf525ab1 | |
| parent | fix(preamble): include hyperref package (diff) | |
| download | wri_350_documentation_log_assignment-6a56ef2ecedbde2fc9e440f1c10ecf709623befe.tar.xz wri_350_documentation_log_assignment-6a56ef2ecedbde2fc9e440f1c10ecf709623befe.zip | |
build(actions): add github pages action
| -rw-r--r-- | .github/workflows/static.yml | 47 |
1 files changed, 47 insertions, 0 deletions
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 |