Skip to content

v0.4.0

v0.4.0 #5

Workflow file for this run

# Upload ZIP archives of datasets to GitHub Releases
name: Upload ZIP archives
# Only run for releases
on:
release:
types:
- published
jobs:
release:
name: Upload ZIP archives
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Create a UTF8 ZIP archive
run: |
# create the tarball
mkdir china-geospatial-data-UTF8
cp *.gmt *.md china-geospatial-data-UTF8/
zip -r china-geospatial-data-UTF8.zip china-geospatial-data-UTF8
- name: Create a GB2312 ZIP archive
run: |
mkdir china-geospatial-data-GB2312
cp *.md china-geospatial-data-GB2312/
for data in $(ls -1 *.gmt); do
iconv -f UTF-8 -t GB2312 ${data} > china-geospatial-data-GB2312/${data}
done
zip -r china-geospatial-data-GB2312.zip china-geospatial-data-GB2312
- name: Upload tarballs
uses: shogo82148/[email protected]
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: china-geospatial-data-*.zip