Skip to content

Commit

Permalink
Add a workflow to upload baseline images as a release asset
Browse files Browse the repository at this point in the history
  • Loading branch information
seisman committed Jun 3, 2021
1 parent bd52c10 commit ed4fbc6
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/release-baseline-images.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Upload the archive of baseline images as release asset

name: Upload baseline images

# Only run for releases
on:
release:
types:
- published

jobs:
upload-baseline:
name: Upload baseline images
runs-on: ubuntu-latest
if: github.repository == 'seisman/pygmt'

steps:
- name: Checkout
uses: actions/[email protected]

- name: Setup data version control (DVC)
uses: iterative/[email protected]

- name: Pull baseline image data from dvc remote
run: |
dvc pull
ls -lhR pygmt/tests/baseline/
- name: Create the baseline image asset in zip format
run: |
mkdir baseline-images
mv pygmt/tests/baseline/*.png baseline-images/
zip -r baseline-images.zip baseline-images
- name: Upload baseline image as a release asset
uses: shogo82148/[email protected]
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: baseline-images.zip



0 comments on commit ed4fbc6

Please sign in to comment.