mirror of
https://github.com/HDFGroup/hdf5.git
synced 2026-09-25 04:09:44 +03:00
Move doxygen latest upload to daily-schedule (#5462)
This commit is contained in:
@@ -17,6 +17,13 @@ on:
|
||||
type: string
|
||||
required: false
|
||||
default: check
|
||||
outputs:
|
||||
has_changes:
|
||||
description: "Whether there were changes the previous day"
|
||||
value: ${{ jobs.call-workflow-tarball.outputs.has_changes }}
|
||||
file_base:
|
||||
description: "The common base name of the source tarballs"
|
||||
value: ${{ jobs.call-workflow-tarball.outputs.file_base }}
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
@@ -15,3 +15,40 @@ jobs:
|
||||
with:
|
||||
use_ignore: check
|
||||
if: "github.repository_owner == 'HDFGroup'"
|
||||
|
||||
call-workflow-publish:
|
||||
needs: [daily-build]
|
||||
if: ${{ ((needs.daily-build.outputs.has_changes == 'true') && (github.repository_owner == 'HDFGroup')) }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Get file base name
|
||||
id: get-file-base
|
||||
run: |
|
||||
FILE_NAME_BASE=$(echo "${{ needs.daily-build.outputs.file_base }}")
|
||||
echo "FILE_BASE=$FILE_NAME_BASE" >> $GITHUB_OUTPUT
|
||||
|
||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||
- name: Get Sources
|
||||
uses: actions/checkout@9a9194f87191a7e9055e3e9b95b8cfb13023bb08 # v4.1.7
|
||||
with:
|
||||
fetch-depth: 0
|
||||
ref: '${{ github.head_ref || github.ref_name }}'
|
||||
|
||||
# Get files created by tarball script
|
||||
- name: Get doxygen (Linux)
|
||||
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4.2.1
|
||||
with:
|
||||
name: docs-doxygen
|
||||
path: ${{ github.workspace }}/${{ steps.get-file-base.outputs.FILE_BASE }}.doxygen
|
||||
|
||||
- name: Setup AWS CLI
|
||||
uses: aws-actions/configure-aws-credentials@v4
|
||||
with:
|
||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
||||
aws-region: ${{ secrets.AWS_REGION }}
|
||||
|
||||
- name: Sync userguide to latest S3 bucket
|
||||
run: |
|
||||
aws s3 sync ./${{ steps.get-file-base.outputs.file_name }}.doxygen s3://${{ secrets.AWS_S3_BUCKET }}/documentation/hdf5/latest --delete
|
||||
|
||||
|
||||
@@ -65,7 +65,3 @@ jobs:
|
||||
run: |
|
||||
aws s3 sync ./hdf5 s3://${{ secrets.AWS_S3_BUCKET }}/${{ vars.TARGET_PATH }}/${{ inputs.target_dir }}/compat_report --delete
|
||||
|
||||
- name: Sync userguide to latest S3 bucket
|
||||
run: |
|
||||
aws s3 sync ./${{ inputs.file_name }}.doxygen s3://${{ secrets.AWS_S3_BUCKET }}/documentation/hdf5/latest --delete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user