Skip to content

Commit

Permalink
include UG
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Jan 10, 2024
1 parent d7bdcf5 commit c1e8225
Showing 1 changed file with 15 additions and 11 deletions.
26 changes: 15 additions & 11 deletions .github/workflows/build-userguide.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,29 @@ on:
branches:
- release/*
- doc/*
workflow_call:
inputs:
run-tests:
required: true
type: boolean

env:
IS_RELEASE: ${{ github.event_name == 'release' && github.event.action == 'created' }}
IS_RELEASE: ${{ github.event_name == 'workflow_dispatch' }}

jobs:

build:

runs-on: ${{ matrix.os }}
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
strategy:
matrix:
os: [ubuntu-20.04]

steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.12

- name: Install dependencies
run: |
Expand Down Expand Up @@ -55,10 +57,12 @@ jobs:
name: pdf-reference-guide
path: ${{ env.PDF_PATH }}

- name: Upload user guide as release asset

- name: Publish assets
if: ${{ env.IS_RELEASE == 'true' }}
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
asset_paths: ${{ env.PDF_PATH_ASSET }}
GITHUB_TOKEN: ${{ github.token }}
tag: ${{ github.event.inputs.release_tag }}
run: |
gh release upload "$tag" ${{ env.PDF_PATH_ASSET }}

0 comments on commit c1e8225

Please sign in to comment.