Skip to content

attemp to fix ci #82 #203

attemp to fix ci #82

attemp to fix ci #82 #203

Workflow file for this run

# yaml-language-server: $schema=https://json.schemastore.org/github-action.json
name: Generate Antora UI with Gulp
on:
push:
branches:
- '*'
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
pull_request:
branches:
- main
jobs:
build-docs:
runs-on: ubuntu-latest
name: Build Antora UI
if: "!contains(github.event.head_commit.message, 'docs skip')"
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Build Antora Site
run: |
npm run antora
- name: Deploy Antora UI to GitHub Pages
if: ${{ github.ref_name == 'main' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: public # The folder the action should deploy.
- name: Release
if: startsWith(github.ref, 'refs/tags/v')
uses: softprops/action-gh-release@v1
with:
files: |
build/ui-bundle.zip
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
name: Release ${{ github.ref_name }}
generate_release_notes: true
draft: false
prerelease: false