Add initial README for PMD Transformer Model Tutorial #3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Quarto Output to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Prepare directory for deployment | |
| run: | | |
| mkdir _site | |
| # Copy the main HTML file to index.html so it loads automatically at the root URL | |
| cp PMD_Transformer_Tutorial.html _site/index.html | |
| # Also copy the original filename just in case | |
| cp PMD_Transformer_Tutorial.html _site/ | |
| # Copy the supporting files folder (contains figures, libs, css) | |
| cp -r PMD_Transformer_Tutorial_files _site/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./_site |