Skip to content

chore(deps-dev): Bump browserify-sign from 4.2.1 to 4.2.2 (#206) #55

chore(deps-dev): Bump browserify-sign from 4.2.1 to 4.2.2 (#206)

chore(deps-dev): Bump browserify-sign from 4.2.1 to 4.2.2 (#206) #55

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'
jobs:
generate_theme_example:
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-artifact@v3
with:
name: theme-example-${{github.sha}}
path: public
push_examples_to_gh_pages:
if: github.event.ref == 'refs/heads/master'
runs-on: ubuntu-22.04
needs: generate_theme_example
permissions:
contents: write # Push to gh-pages
steps:
- name: Download
uses: actions/download-artifact@v3
with:
name: theme-example-${{github.sha}}
- name: Push to gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
keep_files: true
user_name: 'bonita-theme-bot'
user_email: '[email protected]'