Skip to content

feat: provide link to related latest page for "out of support" pages … #68

feat: provide link to related latest page for "out of support" pages …

feat: provide link to related latest page for "out of support" pages … #68

name: Generate theme example
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'gulpfile.js'
- 'package.json'
- 'package-lock.json'
- 'gulp.d/**/*'
- 'src/**/*'
- 'preview-src/**/*'
- '.github/actions/build-setup/**/*'
- '.github/workflows/publish-online-example.yml'
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Build Setup
uses: ./.github/actions/build-setup
- name: Build preview
run: npm run preview:build
env:
BONITA_THEME_URL: 'https://bonitasoft.github.io/bonita-documentation-theme/'
- name: Upload
uses: actions/upload-pages-artifact@v3
with:
path: public
deploy:
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
contents: read
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
actions: read # to download an artifact uploaded by `actions/upload-pages-artifact@v3`
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4