Skip to content

Commit

Permalink
Fix the snapshots workflow (#3148)
Browse files Browse the repository at this point in the history
* Add upload url as artifact
* Change doxygen path and comment log-url upload
* zip doxygen files for upload
* add workspace var
  • Loading branch information
byrnHDF authored Jun 16, 2023
1 parent cef648e commit 0f2cb0f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/cmake-ctest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:

- name: List files for the space (Linux)
run: |
ls ${{ github.workspace }}
ls -l ${{ github.workspace }}
ls ${{ runner.workspace }}
- name: Uncompress source (Linux)
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
- name: List files in the space (Linux)
run: |
ls ${{ github.workspace }}
ls ${{ runner.workspace }}
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published binary (Linux)
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
- name: List files in the space (MacOS)
run: |
ls ${{ github.workspace }}
ls ${{ runner.workspace }}
ls -l ${{ runner.workspace }}
# Save files created by ctest script
- name: Save published binary (MacOS)
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: docs-doxygen
path: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
path: ${{ github.workspace }}

- name: Zip Folder
run: zip -r ${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen

- name: Get tgz-tarball (Linux)
uses: actions/download-artifact@v3
Expand Down Expand Up @@ -101,19 +104,29 @@ jobs:
path: ${{ github.workspace }}

- name: PreRelease tag
id: create_release
uses: softprops/action-gh-release@v1
with:
tag_name: "snapshot"
prerelease: true
files: |
${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen.zip
${{ 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: Store Release url
run: |
echo "${{ steps.create_release.outputs.upload_url }}" > ./upload_url
# - uses: actions/upload-artifact@v3
# with:
# path: ./upload_url
# name: upload_url

- name: List files for the space (Linux)
run: |
ls -l ${{ github.workspace }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:

- name: List files in the repository
run: |
ls ${{ github.workspace }}
ls -l ${{ github.workspace }}
ls $GITHUB_WORKSPACE
# Save files created by release script
Expand Down

0 comments on commit 0f2cb0f

Please sign in to comment.