-
Notifications
You must be signed in to change notification settings - Fork 14
Add release workflow and document release process #57
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
Open
jhendersonHDF
wants to merge
1
commit into
HDFGroup:develop
Choose a base branch
from
jhendersonHDF:release_workflow
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| name: Create a release of HDF5 Async VOL | ||
|
|
||
| # Trigger when release tags of style "vX.X.X" are pushed, but not when pre-release tags of style "vX.X.X(-)rc" are pushed | ||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| - '!v*rc*' | ||
|
|
||
| permissions: | ||
| contents: write | ||
|
|
||
| jobs: | ||
| package: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout source | ||
| uses: actions/checkout@v3 | ||
|
|
||
| - name: Extract version number | ||
| id: get_version | ||
| # Skip leading "v" | ||
| run: echo "version=${GITHUB_REF_NAME:1}" >> $GITHUB_OUTPUT | ||
|
|
||
| - name: Create Build Environment | ||
| run: cmake -E make_directory ${{github.workspace}}/build | ||
|
|
||
| - name: Configure CMake | ||
| shell: bash | ||
| working-directory: ${{github.workspace}}/build | ||
| run: | | ||
| cmake -D HDF5_VOL_ASYNC_PACKAGE_SOURCE=1 $GITHUB_WORKSPACE | ||
| make package_source | ||
|
|
||
| - name: Create Release | ||
| id: create_release | ||
| uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # v2.5.0 | ||
| with: | ||
| tag_name: "${{ github.ref }}" | ||
| name: "v${{ steps.get_version.outputs.version }}" | ||
| draft: true | ||
| prerelease: false | ||
| files: | | ||
| ${{github.workspace}}/build/hdf5_vol_async-${{ steps.get_version.outputs.version }}.tar.gz | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| These are the steps to follow when creating a new release of the HDF5 Async VOL connector: | ||
|
|
||
| 0. Ensure all changes are ready for the release and committed to the repository | ||
|
|
||
| 1. Update the `VERSION` number specified for the `project ()` command in CMakeLists.txt in the root of the source tree with the new version number | ||
|
|
||
| <b>Example:</b> | ||
| ```CMake | ||
| project(HDF5_VOL_ASYNC VERSION 1.9.0 LANGUAGES C) | ||
| ``` | ||
|
|
||
| becomes | ||
|
|
||
| ```CMake | ||
| project(HDF5_VOL_ASYNC VERSION 2.0.0 LANGUAGES C) | ||
| ``` | ||
|
|
||
| 2. Commit the change to the CMakeLists.txt file, using the version number with a leading "v" as the commit message | ||
|
|
||
| <b>Example:</b> | ||
| ```bash | ||
| git add CMakeLists.txt | ||
| git commit -m "v2.0.0" | ||
| git push | ||
| ``` | ||
|
|
||
| 3. Create a tag pointing to the commit from the previous step, using a leading "v" for the tag name | ||
|
|
||
| <b>Example with signed tag:</b> | ||
| ```bash | ||
| git tag -s v2.0.0 -m "HDF5 Async VOL 2.0.0" | ||
| ``` | ||
|
|
||
| <b>Example with unsigned tag:</b> | ||
| ```bash | ||
| git tag -a v2.0.0 -m "HDF5 Async VOL 2.0.0" | ||
| ``` | ||
|
|
||
| 4. Push the tag from the previous step, triggering the release workflow | ||
|
|
||
| <b>Example:</b> | ||
| ```bash | ||
| git push origin v2.0.0 | ||
| ``` | ||
|
|
||
| 5. On GitHub, edit the draft release created by the release workflow to tidy up any details, then publish the release when finished |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.