Skip to content

Commit

Permalink
ci(publish-schema): Publish the JSON schema to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 2, 2024
1 parent 1d632fa commit c2d9207
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/publish-schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish Schema

on:
push:
tags:
- "v*.*.*"

jobs:
publish-schema:
name: Publish Schema
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- run: |
mkdir _site
cp -a internal/config/*.schema.json _site/
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
2 changes: 1 addition & 1 deletion config_example.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/gabe565/changelog-generator/main/internal/config/config.schema.json
# yaml-language-server: $schema=https://gabe565.github.io/changelog-generator/config.schema.json

# Sorts the changelog by the commit message.
# When empty, the order will match `git log`.
Expand Down

0 comments on commit c2d9207

Please sign in to comment.