Release topic j document r2 (#1185) (#1188) (#518) #210
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
| # Deploy ARF as static content to GitHub Pages | |
| name: Deploy ARF to Pages | |
| on: | |
| # Runs on pushes targeting the default branch | |
| push: | |
| branches: ["main"] | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
| permissions: | |
| contents: write | |
| # Allow one concurrent deployment | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout the repository | |
| uses: actions/checkout@v4 | |
| with: | |
| ref: 'main' | |
| fetch-depth: 0 | |
| - name: Get latest tag | |
| id: latest_tag | |
| uses: WyriHaximus/github-action-get-previous-tag@v1 | |
| - name: Setup python environment | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.x | |
| - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV | |
| - name: Setup cache | |
| uses: actions/cache@v4 | |
| with: | |
| key: mkdocs-material-${{ env.cache_id }} | |
| path: .cache | |
| restore-keys: | | |
| mkdocs-material- | |
| - name: Install mkdocs theme | |
| run: pip install mkdocs-material mike | |
| - name: Configure fetch and merge | |
| run: | | |
| git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git fetch origin | |
| git merge origin | |
| - name: Setup version number | |
| run: | | |
| VERSION=${{ steps.latest_tag.outputs.tag }} | |
| echo "arf_version=${VERSION:1}" >> $GITHUB_ENV | |
| - name: Deploy mkdocs | |
| run: | | |
| mike deploy --push --update-aliases ${{ env.arf_version }} latest | |
| mike set-default --allow-empty --push latest | |
| - name: Setup pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| with: | |
| pandoc-version: latest | |
| - name: Install latex | |
| run: | | |
| sudo apt update -y | |
| sudo apt install -y texlive-full texlive-xetex | |
| - name: Build pdf | |
| run: make | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: architecture-and-reference-framework | |
| path: build/pdf |