New test data for no-colorbar
option of iris.quickplot methods. See…
#25
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
# Creates a new bugfix release whenever a push is made to master. | |
name: release | |
# Controls when the action will run. | |
on: | |
push: | |
branches: | |
- master | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
release: | |
if: ${{ github.event.label.name != 'norelease' }} | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v2 | |
- name: Calculate next version | |
run: | | |
git pull | |
export CURRENT_VERSION=$(cat version.txt) | |
export THIS_VERSION=$(echo $CURRENT_VERSION | awk -F. -v OFS=. '{$NF++;print}') | |
echo "THIS_VERSION=$THIS_VERSION" >> $GITHUB_ENV | |
- name: Store next version | |
run: | | |
echo ${{ env.THIS_VERSION }} > version.txt | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git commit -am "Automated release - advance the release version." | |
git push | |
- name: Cut release | |
uses: softprops/action-gh-release@1e07f4398721186383de40550babbdf2b84acfc5 | |
with: | |
tag_name: v${{ env.THIS_VERSION }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build_index: | |
needs: release | |
name: Build test-data index | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install iris-grib | |
run: | | |
source $CONDA/bin/activate base | |
conda install -q -y -c conda-forge iris-grib | |
- name: generate index | |
working-directory: indexing | |
run: | | |
git pull | |
$CONDA/bin/python generate_index.py | |
- name: Store index | |
run: | | |
git config user.name "GitHub Actions" | |
git config user.email "[email protected]" | |
git commit -am "Automated index - update index." | |
git push |