Skip to content

chore: add release workflow #5

chore: add release workflow

chore: add release workflow #5

Workflow file for this run

name: Release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
with:
files: docs/openapi.yaml
publish:
name: Publish HTML documentation
runs-on: ubuntu-latest
permissions:
contents: write
actions: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Wait for OpenAPI workflow to complete
uses: lewagon/wait-on-check-action@v1.3.4
with:
ref: ${{ github.ref }}
check-name: 'build-html'
repo-token: ${{ secrets.GITHUB_TOKEN }}
wait-interval: 10
- name: Download artifact from OpenAPI workflow
uses: dawidd6/action-download-artifact@v6
with:
workflow: openapi.yml
name: openapi-html
path: public
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public