v1.4.0-rc4 #555
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Userguide pdf | |
on: | |
push: | |
branches: | |
- main | |
- develop | |
- doc | |
- test | |
- dependabot/* | |
release: | |
types: [ created ] | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get release | |
if: github.event_name == 'release' && github.event.action == 'created' | |
id: get_release | |
uses: bruceadams/get-release@main | |
- name: Read antares-xpansion version | |
id: antares-xpansion-version | |
uses: ./.github/actions/read-json-value | |
with: | |
path: 'antares-version.json' | |
key: 'antares_xpansion_version' | |
- id: create-user-guide | |
name: user guide pdf creation | |
uses: ./.github/workflows/generate-userguide-pdf | |
with: | |
antares-xpansion-version: ${{steps.antares-xpansion-version.outputs.result}} | |
- name: upload user guide | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ steps.create-user-guide.outputs.pdf-name }} | |
path: ${{ steps.create-user-guide.outputs.pdf-path }} | |
- name: publish guide upload | |
if: github.event_name == 'release' && github.event.action == 'created' | |
uses: actions/[email protected] | |
with: | |
upload_url: ${{ steps.get_release.outputs.upload_url }} | |
asset_path: ${{ steps.create-user-guide.outputs.pdf-path }} | |
asset_name: ${{ steps.create-user-guide.outputs.pdf-name }} | |
asset_content_type: application/pdf | |