echo tx-token #12
This file contains 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: Deploy Sphinx documentation to Pages | ||
on: | ||
push: | ||
#branches: [ "master" ] | ||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: docker.io/sphinxdoc/sphinx:8.0.2 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build static files | ||
id: build | ||
run: echo "TX: $TX_TOKEN" && ./bin/install-deps-in-sphinx-container.sh && make pages | ||
env: | ||
TX_TOKEN: ${{ secrets.TX_TOKEN }} | ||
- name: Upload static files as artifact | ||
id: deployment | ||
uses: actions/upload-pages-artifact@v3 | ||
with: | ||
path: pages | ||
# Deployment job | ||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: github-pages | ||
url: ${{ steps.deployment.outputs.page_url }} | ||
permissions: | ||
pages: write | ||
id-token: write | ||
steps: | ||
- name: Deploy to GitHub Pages | ||
id: deployment | ||
uses: actions/deploy-pages@v4 | ||