Skip to content

chore(release): 4.0.0 #111

chore(release): 4.0.0

chore(release): 4.0.0 #111

Workflow file for this run

on:
push:
tags:
- 'v*'
branches:
- main
paths:
- public/**
name: Deploy to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: 'pages'
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Copy OpenAPI Specification for all versions
run: |
mkdir .tmp
versions=`git tag -l --sort=creatordate`
for version in $versions; do
git checkout tags/$version
cp openapi.yaml .tmp/openapi-$version.yaml
echo $version >> .tmp/versions.txt
done
git checkout $GITHUB_REF
cp -R .tmp/* public/
- name: Upload Artifact
uses: actions/upload-pages-artifact@v1
with:
path: './public'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2