Skip to content

Commit 11d8b91

Browse files
Merge pull request #2 from USDA-REE-NASS/update2024
Update2024
2 parents b8d50fe + 2d490d6 commit 11d8b91

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/zenodo_release.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Zenodo Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: download archive to runner
14+
env:
15+
tarball: ${{ github.event.release.tarball_url }}
16+
run: |
17+
name=$(basename ${tarball})
18+
curl -L $tarball > $name
19+
echo "archive=${name}" >> $GITHUB_ENV
20+
- name: Run Zenodo Deploy
21+
uses: rseng/zenodo-release@main
22+
with:
23+
token: ${{ secrets.ZENODO_TOKEN }}
24+
version: ${{ github.event.release.tag_name }}
25+
zenodo_json: .zenodo.json # required
26+
archive: ${{ env.archive }}

.zenodo.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"upload_type": "Python code",
3+
"description": "This is a GitHub repository containing code to create Crop Sequence Boundaries using United States Department of Agriculture National Agricultural Statistics Service historic Cropland Data Layers",
4+
"creators": [
5+
{
6+
"affiliation": "United States Department of Agriculture National Agricultural Statistics Service",
7+
"name": "Kevin A. Hunt"
8+
},
9+
{
10+
"affiliation": "United States Department of Agriculture Economic Research Service",
11+
"name": "Peter C. Beeson"
12+
}
13+
],
14+
"keywords": ["statistical analysis", "landcover", "cropland", "geospatial", "CDL"],
15+
"license": "MIT"
16+
}

0 commit comments

Comments
 (0)