Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add publish to bucket workflow #4566

Merged
merged 3 commits into from
Jun 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/abi-report.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 Check Application Binary Interface (ABI)

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aocc-auto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev PAR autotools aocc ompi

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/aocc-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev PAR CMake aocc ompi

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/autotools.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev autotools CI

# Controls when the action will run. Triggers the workflow on push or pull request
# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand All @@ -23,9 +23,6 @@ concurrency:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:
call-workflow-special-autotools:
name: "Autotools Special Workflows"
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cmake-bintest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 examples bintest runs

# Controls when the action will run. Triggers the workflow on a schedule
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand All @@ -12,8 +12,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
test_binary_win:
# Windows w/ MSVC + CMake
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/cmake-ctest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev ctest runs

# Controls when the action will run. Triggers the workflow on a call
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand All @@ -26,8 +26,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
build_and_test_win:
# Windows w/ MSVC + CMake
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev cmake CI

# Controls when the action will run. Triggers the workflow on push or pull request
# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand All @@ -23,9 +23,6 @@ concurrency:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:
call-workflow-special-cmake:
name: "CMake Special Workflows"
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cve.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: cve dev

# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cygwin-auto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev autotools cygwin

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/cygwin-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev CMake cygwin

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/daily-build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev daily build

# Controls when the action will run. Triggers the workflow on a schedule
# Triggers the workflow on a schedule or on demand
on:
workflow_dispatch:
schedule:
Expand All @@ -9,8 +9,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel.
jobs:
get-old-names:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/h5py.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
name: h5py

# Triggers the workflow on a schedule or on demand
on:
workflow_dispatch:
schedule:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/hdfeos5.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdfeos5 dev

# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/intel-auto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev autotools icx

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/intel-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev CMake icx

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/main-auto.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev autotools CI

# Controls when the action will run. Triggers the workflow on a call
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand All @@ -16,9 +16,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:

# A workflow that builds the library and runs all the tests
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/main-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev CMake CI

# Controls when the action will run. Triggers the workflow on a call
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand All @@ -17,9 +17,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel. We just have one job, but the matrix items defined below will
# run in parallel.
jobs:

# A workflow that builds the library and runs all the tests
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Check Markdown links

# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/msys2-auto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev Autotools MSys2

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/netcdf.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: netCDF dev

# Triggers the workflow on push or pull request or on demand
on:
workflow_dispatch:
push:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nvhpc-auto.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev autotools nvhpc

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nvhpc-cmake.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: hdf5 dev CMake nvhpc

# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
55 changes: 55 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: hdf5 publishrelease

# Triggers the workflow on demand
on:
workflow_dispatch:
inputs:
use_tag:
description: 'HDF5 Release version tag'
type: string
required: true
target_dir:
description: 'HDF5 target bucket directory'
type: string
required: true
permissions:
contents: read

jobs:
publish-tag:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Get Sources
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
with:
fetch-depth: 0
ref: '${{ github.head_ref || github.ref_name }}'

- name: Get hdf5 release
uses: dsaltares/fetch-gh-release-asset@master
with:
repo: 'HDFGroup/hdf5'
version: 'tags/${{ inputs.use_tag }}'
regex: true
target: 'HDF5/'
file: '${{ inputs.use_hdf }}-*.*'

- name: Setup AWS CLI
uses: aws-actions/configure-aws-credentials@v1
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 release to S3 bucket
run: |
aws s3 sync ./HDF5 s3://${{ secrets.AWS_S3_BUCKET }}/${{ vars.TARGET_PATH }}/${{ inputs.target_dir }}/downloads --delete

- name: Uncompress source (Linux)
run: tar -zxvf ${{ github.workspace }}/${{ inputs.use_hdf }}.doxygen.tar.gz

- name: Sync userguide to S3 bucket
run: |
aws s3 sync ./doxygen s3://${{ secrets.AWS_S3_BUCKET }}/${{ vars.TARGET_PATH }}/${{ inputs.target_dir }}/documentation --delete

2 changes: 1 addition & 1 deletion .github/workflows/release-files.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev release-files

# Controls when the action will run. Triggers the workflow on a schedule
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev release build

# Controls when the action will run. Triggers the workflow on a manual run
# Triggers the workflow on demand
on:
workflow_dispatch:
inputs:
Expand All @@ -13,8 +13,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel.
jobs:
log-the-inputs:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/remove-files.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev remove-files

# Controls when the action will run. Triggers the workflow on a schedule
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/tarball.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 dev tarball

# Controls when the action will run. Triggers the workflow on a schedule
# Triggers the workflow on a call from another workflow
on:
workflow_call:
inputs:
Expand Down Expand Up @@ -34,8 +34,6 @@ on:
permissions:
contents: read

# A workflow run is made up of one or more jobs that can run sequentially or
# in parallel
jobs:
check_commits:
name: Check for recent commits
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vfd.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 VFD CI

# Run VFD CI daily at 07:00 CDT (12:00 UTC)
# Run VFD CI daily at 07:00 CDT (12:00 UTC) or on demand
on:
workflow_dispatch:
schedule:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/vol.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: hdf5 VOL connectors CI

# Run VOL connector CI daily at 06:00 CDT (11:00 UTC)
# Run VOL connector CI daily at 06:00 CDT (11:00 UTC) or on demand.
on:
workflow_dispatch:
schedule:
Expand Down
Loading