CHG: Changed deployment repo fro userguide #2
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
| # This workflow uses actions that are not certified by GitHub. | |
| # They are provided by a third-party and are governed by | |
| # separate terms of service, privacy policy, and support | |
| # documentation. | |
| # NOTE: | |
| # - Search https://ctan.org/ for package names of missing TeX Live packages as | |
| # needed | |
| # | |
| name: Generate User Guide | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - ".github/workflows/pdf.yml" | |
| - "docs/**" | |
| - "userguide/**" | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| env: | |
| BIBINPUTS: "../publications/bibtex/" | |
| TARGET: "userguide" | |
| jobs: | |
| complete: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: userguide | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install TeX Live | |
| uses: teatimeguest/setup-texlive-action@v3 | |
| with: | |
| packages: | | |
| scheme-basic | |
| aguplus | |
| amsfonts | |
| amsmath | |
| bibtex | |
| collection-fontsrecommended | |
| enumitem | |
| fancyhdr | |
| fancyvrb | |
| float | |
| fontawesome | |
| geometry | |
| graphics | |
| hyperref | |
| jknapltx | |
| listings | |
| multirow | |
| natbib | |
| pdfcol | |
| tcolorbox | |
| tools | |
| upquote | |
| xcolor | |
| - name: Generate User Guide | |
| run: | | |
| export BIBINPUTS=${{ env.BIBINPUTS }} | |
| export TARGET=${{ env.TARGET }} | |
| ./userguide.sh | |
| - name: Deploy to ISSM Repository | |
| uses: lubu12/copy-files-to-repository@v1 | |
| env: | |
| API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} | |
| with: | |
| source-files: ${{ env.TARGET }}/${{ env.TARGET }}.pdf | |
| destination-username: 'ISSMteam' | |
| destination-repository: 'ISSM' | |
| destination-directory: '' | |
| destination-branch: 'main' | |
| commit-email: '[email protected]' | |
| commit-message: 'CHG: Updated user guide' |