-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(rtd): update to trigger rtd build (#25)
- Loading branch information
1 parent
149d979
commit ef06260
Showing
2 changed files
with
23 additions
and
21 deletions.
There are no files selected for viewing
This file contains 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 |
---|---|---|
|
@@ -27,6 +27,23 @@ jobs: | |
echo ${{ github.repository }} | ||
echo ${{ github.ref }} | ||
- name: Get Current Time | ||
uses: 1466587594/[email protected] | ||
id: current-time | ||
with: | ||
format: MM/DD/YYYY HH:mm | ||
|
||
- name: Set current time as environmental variable | ||
env: | ||
TIME: "${{ steps.current-time.outputs.time }}" | ||
F_TIME: "${{ steps.current-time.outputs.formattedTime }}" | ||
run: | | ||
echo "::set-env name=F_TIME::${{ steps.current-time.outputs.formattedTime }}" | ||
echo "::set-env name=TIME::${{ steps.current-time.outputs.time }}" | ||
echo $TIME | ||
echo $F_TIME | ||
echo "MODFLOW 6 examples: built at ${F_TIME}" | ||
- name: Setup symbolic link to gfortran | ||
run: | | ||
sudo ln -fs /usr/bin/gfortran-9 /usr/local/bin/gfortran | ||
|
@@ -141,7 +158,8 @@ jobs: | |
ls -la ./ | ||
- name: Upload build artifacts for latest release | ||
if: github.repository_owner == 'MODFLOW-USGS' && github.ref == 'refs/heads/master' | ||
if: | ||
github.repository_owner == 'MODFLOW-USGS' && github.ref == 'refs/heads/master' | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: latest | ||
|
@@ -169,27 +187,12 @@ jobs: | |
pwd | ||
ls -l ./latest/ | ||
- name: Get Current Time | ||
uses: 1466587594/[email protected] | ||
id: current-time | ||
with: | ||
format: MM/DD/YYYY HH | ||
|
||
- name: Set current time as environmental variable | ||
env: | ||
TIME: "${{ steps.current-time.outputs.time }}" | ||
F_TIME: "${{ steps.current-time.outputs.formattedTime }}" | ||
run: | | ||
echo "::set-env name=F_TIME::${{ steps.current-time.outputs.formattedTime }}" | ||
echo "::set-env name=TIME::${{ steps.current-time.outputs.time }}" | ||
echo $TIME $F_TIME | ||
- name: Create a Release | ||
uses: ncipollo/release-action@v1 | ||
with: | ||
tag: latest | ||
name: latest build | ||
body: "MODFLOW 6 examples: built at $F_TIME" | ||
body: "MODFLOW 6 examples: built at ${F_TIME}" | ||
allowUpdates: true | ||
draft: false | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains 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 |
---|---|---|
|
@@ -8,7 +8,7 @@ on: | |
|
||
jobs: | ||
rtd_build: | ||
name: latest-build | ||
name: rtd-build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
|
@@ -131,12 +131,11 @@ jobs: | |
# trigger rtd if previous job was successful | ||
rtd: | ||
name: Read the Docs trigger | ||
name: rtd-trigger | ||
needs: rtd_build | ||
runs-on: ubuntu-latest | ||
|
||
if: | ||
github.repository_owner == 'MODFLOW-USGS' && github.event_name == 'push' | ||
if: github.repository_owner == 'MODFLOW-USGS' && github.event_name == 'push' | ||
steps: | ||
- name: Trigger RTDs build on master and develop branches | ||
uses: dfm/[email protected] | ||
|