|
| 1 | +# This file was created automatically with `myst init --gh-pages` 🪄 💚 |
| 2 | +# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**. |
| 3 | + |
| 4 | +name: MyST GitHub Pages Deploy |
| 5 | +on: |
| 6 | + push: |
| 7 | + # Runs on pushes targeting the default branch |
| 8 | + branches: [main] |
| 9 | +env: |
| 10 | + # `BASE_URL` determines the website is served from, including CSS & JS assets |
| 11 | + # You may need to change this to `BASE_URL: ''` |
| 12 | + BASE_URL: /${{ github.event.repository.name }} |
| 13 | + |
| 14 | +# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages |
| 15 | +permissions: |
| 16 | + contents: read |
| 17 | + pages: write |
| 18 | + id-token: write |
| 19 | +# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. |
| 20 | +# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. |
| 21 | +concurrency: |
| 22 | + group: 'pages' |
| 23 | + cancel-in-progress: false |
| 24 | +jobs: |
| 25 | + deploy: |
| 26 | + environment: |
| 27 | + name: github-pages |
| 28 | + url: ${{ steps.deployment.outputs.page_url }} |
| 29 | + runs-on: ubuntu-latest |
| 30 | + steps: |
| 31 | + - uses: actions/checkout@v4 |
| 32 | + - name: Setup Pages |
| 33 | + uses: actions/configure-pages@v3 |
| 34 | + - uses: actions/setup-node@v4 |
| 35 | + with: |
| 36 | + node-version: 18.x |
| 37 | + - name: Install MyST Markdown |
| 38 | + run: npm install -g mystmd |
| 39 | + - name: Setup TeX Live |
| 40 | + uses: teatimeguest/setup-texlive-action@v3 |
| 41 | + with: |
| 42 | + packages: | |
| 43 | + adjustbox |
| 44 | + amsfonts |
| 45 | + amsmath |
| 46 | + amssymb |
| 47 | + amsthm |
| 48 | + authblk |
| 49 | + background |
| 50 | + babel |
| 51 | + booktabs |
| 52 | + curvenote |
| 53 | + datetime |
| 54 | + doi |
| 55 | + enumitem |
| 56 | + fancyhdr |
| 57 | + fancyvrb |
| 58 | + float |
| 59 | + framed |
| 60 | + fontenc |
| 61 | + geometry |
| 62 | + graphbox |
| 63 | + graphicx |
| 64 | + hyperref |
| 65 | + inputenc |
| 66 | + lineno |
| 67 | + lipsum |
| 68 | + lmodern |
| 69 | + microtype |
| 70 | + mdframed |
| 71 | + natbib |
| 72 | + needspace |
| 73 | + nicefrac |
| 74 | + newfloat |
| 75 | + preprint |
| 76 | + scalerel |
| 77 | + sidecap |
| 78 | + tikz |
| 79 | + times |
| 80 | + titlesec |
| 81 | + txfonts |
| 82 | + ulem |
| 83 | + url |
| 84 | + xcolor |
| 85 | + xkeyval |
| 86 | + zref-abspage |
| 87 | + zref |
| 88 | +
|
| 89 | +
|
| 90 | +
|
| 91 | +
|
| 92 | + # - name: Build PDF Assets |
| 93 | + # run: myst build --pdf |
| 94 | + - name: Build HTML Assets |
| 95 | + run: myst build --html |
| 96 | + - name: Upload artifact |
| 97 | + uses: actions/upload-pages-artifact@v3 |
| 98 | + with: |
| 99 | + path: './_build/html' |
| 100 | + - name: Deploy to GitHub Pages |
| 101 | + id: deployment |
| 102 | + uses: actions/deploy-pages@v4 |
0 commit comments