docs-deploy: add an environment #28
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: docs-deploy | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
docs: | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: deps | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install -y roffit | |
- name: docs | |
run: | | |
mkdir public | |
roffit < twa.1 > public/index.html | |
- name: upload docs artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./public/ | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |