Skip to content

docs-deploy: add an environment #28

docs-deploy: add an environment

docs-deploy: add an environment #28

Workflow file for this run

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