This document provides guidance for using this repository to release USGS executables.
This repository only builds USGS programs and contains none of their source code. Its contents are concerned only with the build and release process. Repository contents have no direct relationship to release cadence or version/tag numbers.
This repo is configured to allow manually triggering releases, independent of changes to version-controlled files.
The .github/workflows/release.yml
workflow is triggered on the following events:
push
tomaster
workflow_dispatch
If the triggering event is push
, metadata is updated, binaries are built and uploaded as artifacts, and the workflow ends. This tests whether programs can be built by pymake.
If the triggering event is workflow_dispatch
:
- Metadata is updated. If changes are detected to any of the program versions or timestamps, a draft PR is opened against the
master
branch to update the table inREADME.md
. - Binaries are built and uploaded as artifacts
- A release is created, incrementing the version number.
Note: the release is currently published immediately, but could be changed to a draft by updating the draft
input on ncipollo/release-action
in .github/workflows/release.yml
.
Note: version numbers don't currently follow semantic versioning conventions, but simply increment an integer for each release.
The workflow_dispatch
event is GitHub's mechanism for manually triggering workflows. This can be accomplished from the Actions tab in the GitHub UI, or via the GitHub CLI.
First, trigger the integration.yml
workflow to build mf6 with pymake and run it against the mf6 autotest suite. If tests pass, trigger the release.yml
workflow to make the release.
Navigate to the Actions tab of this repository. Select a workflow. A Run workflow
button should be visible in an alert at the top of the list of workflow runs. Click the Run workflow
button, selecting the master
branch.
Install and configure the GitHub CLI if needed. Then the following command can be run from the root of your local clone of the repository:
gh workflow run <workflow>.yml
On the first run, the CLI will prompt to choose whether the run should be triggered on your fork of the repository or on the upstream version. This decision is stored for subsequent runs — to override it later, use the --repo
(short -R
) option to specify the repository. For instance, if you initially selected your fork but would like to trigger on the main repository:
gh workflow run <workflow>.yml -R MODFLOW-USGS/executables
Note: by default, workflow runs are associated with the repository's default branch. If the repo's default branch is develop
(as is currently the case for MODFLOW-USGS/executables
, you will need to use the --ref
(short -r
) option to specify the master
branch when triggering from the CLI. For instance:
gh workflow run <workflow>.yml -R MODFLOW-USGS/executables -r master