Skip to content

docs: add get artifacts link #7

docs: add get artifacts link

docs: add get artifacts link #7

Workflow file for this run

name: Update Doxygen Files and Publish Pages
on:
push:
branches:
- CI/CD
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Doxygen
run: choco install doxygen.portable -y
- name: Generate Doxygen documentation
run: doxygen Doxyfile
- name: Upload Doxygen artifacts
uses: actions/upload-artifact@v2
with:
name: Doxygen Documentation
path: ./html
- name: Move artifacts to GitHub Pages directory
run: |
mkdir .\docs
move .\html\* .\docs
- name: Trigger GitHub Pages update
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.sha }}
release_name: Release ${{ github.sha }}
body: |
Doxygen Documentation Artifacts
draft: false
prerelease: false
- name: Get Artifacts Link
id: get_artifacts_link
run: echo "::set-output name=artifacts_url::${{ steps.create_release.outputs.upload_url }}"