Skip to content

add trigger endpoint to metadata request #16

add trigger endpoint to metadata request

add trigger endpoint to metadata request #16

Workflow file for this run

name: gh-pages
on:
# Runs on pushes targeting the default branch
push:
paths-ignore:
- README.md
- CONTRIBUTING.md
- LICENSE.md
- .gitignore
- '.github/**'
branches: ["*"]
release:
types:
- created
- edited
# 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
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
env:
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: '1.20'
- name: Install mmark
run: go install github.com/mmarkdown/mmark@latest
- name: Convert Markdown to RFC XML with MMark
run: |
mmark openid-provider-commands-1_0.md > openid-provider-commands-1_0.xml
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install xml2rfc
run: pip install xml2rfc
- name: Show env
run: echo "$GITHUB_CONTEXT"
- name: Create html folder
run: mkdir html
- name: Show folders
run: ls -al
- name: Show branch name
run: echo "$BRANCH_NAME"
- name: Render HTML
run: xml2rfc --html openid-provider-commands-1_0.xml --out html/$BRANCH_NAME.html
- name: Deploy to GitHub Pages
if: success()
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: html
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# - name: Setup Pages
# uses: actions/configure-pages@v5
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# # Upload entire repository
# path: 'html'
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}