From 03c8d45abd614e887430fab69e3d82986960d36c Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 8 Jun 2023 08:33:08 -0500 Subject: [PATCH 1/4] Add workspace path --- .github/workflows/release.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8601c9e681b..9eec2f32950 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,12 +113,12 @@ jobs: tag_name: "snapshot" prerelease: true files: | - ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen - ${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz - ${{ steps.get-file-base.outputs.FILE_BASE }}.zip - ${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz - ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz - ${{ steps.get-file-base.outputs.FILE_BASE }}-win_vs2022.zip + ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen + ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz + ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.zip + ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz + ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz + ${{ github.workspace }}/${{ 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 @@ -129,4 +129,4 @@ jobs: 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 From 724d7e33a82dff4879541e569c69833b3554ed82 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 8 Jun 2023 09:17:56 -0500 Subject: [PATCH 2/4] add debug --- .github/workflows/release.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9eec2f32950..3e7c6c0f893 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -113,17 +113,22 @@ jobs: tag_name: "snapshot" prerelease: true files: | - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.zip - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz - ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}-win_vs2022.zip + ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen + ${{ steps.get-file-base.outputs.FILE_BASE }}.tar.gz + ${{ steps.get-file-base.outputs.FILE_BASE }}.zip + ${{ steps.get-file-base.outputs.FILE_BASE }}-osx12.tar.gz + ${{ steps.get-file-base.outputs.FILE_BASE }}-ubuntu-2204.tar.gz + ${{ 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 From bcaeeffdc0c4e73cfb8940cbb94fbd194ff9a0ec Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Sun, 11 Jun 2023 09:36:47 -0500 Subject: [PATCH 3/4] Make one job so workspace files are available --- .github/workflows/release.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e7c6c0f893..d949ac24ae7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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: From c927e85eccbe31802117af7e789892180dd9ae9b Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Sun, 11 Jun 2023 10:46:20 -0500 Subject: [PATCH 4/4] Put doxygen docs under docs folder in gh-pages --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d949ac24ae7..ae5843431ce 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -124,3 +124,5 @@ jobs: with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen + destination_dir: ./docs +