Skip to content

Commit

Permalink
Fix gh pages so that the doxygen files are uploaded (#3102)
Browse files Browse the repository at this point in the history
* Add workspace path
* add debug
* Make one job so workspace files are available
* Put doxygen docs under docs folder in gh-pages
  • Loading branch information
byrnHDF authored Jun 13, 2023
1 parent 1891387 commit 281dbf4
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ jobs:
- run: |
echo "Tag already present: ${{ steps.tag_create.outputs.tag_exists }}"
getfiles:
PreRelease-getfiles:
runs-on: ubuntu-latest
needs: create-tag
environment: snapshots
permissions:
contents: write
steps:
- name: Get file base name
id: get-file-base
Expand Down Expand Up @@ -92,21 +96,6 @@ jobs:
name: tgz-ubuntu-2204-binary
path: ${{ github.workspace }}

# Get files used by release script

PreRelease:
runs-on: ubuntu-latest
needs: [create-tag, getfiles]
environment: snapshots
permissions:
contents: write
steps:
- name: Get file base name
id: get-file-base
run: |
FILE_NAME_BASE=$(echo "${{ inputs.file_base }}")
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
- name: PreRelease tag
uses: softprops/action-gh-release@v1
with:
Expand All @@ -121,12 +110,19 @@ jobs:
${{ steps.get-file-base.outputs.FILE_BASE }}-win_vs2022.zip
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
- name: Create .nojekyll
run: touch ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen/.nojekyll
shell: bash
- name: List files for the space (Linux)
run: |
ls -l ${{ github.workspace }}
ls ${{ runner.workspace }}
# - name: Create .nojekyll
# run: touch ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen/.nojekyll
# shell: bash

- name: dev-only-docs
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
publish_dir: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
destination_dir: ./docs

0 comments on commit 281dbf4

Please sign in to comment.