diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61b931a..d3821ad 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,16 +8,20 @@ on: - main - test-gh-actions # GH actions test branch +permissions: + id-token: write + pages: write + jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v5 with: - python-version: 3.7 + python-version: 3.10.15 - name: Install Python dependencies run: | sudo apt-get install python3-pip @@ -33,13 +37,13 @@ jobs: jupyter-book build ./book - name: Push built book HTML as artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: path: "book/_build/html" - name: Deploy book HTML to Github Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4 - name: Build PDF of book run: | @@ -62,4 +66,4 @@ jobs: --tag_name v0.0.0-$(git rev-parse HEAD | cut -c 1-8) \ --prerelease \ --body_string "Automatically generated from book sources via Github Actions" \ - book/_build/elara-handbook.pdf + book/_build/elara-handbook.pdf \ No newline at end of file