Skip to content

Commit

Permalink
fix artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli committed Jun 20, 2024
1 parent 31962de commit e5b3405
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: metadata
name: ${{ steps.ostag.outputs.ostag }}
path: |
./code.json
./code.md
Expand Down
22 changes: 14 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ jobs:
if: runner.os == 'Linux'
uses: actions/upload-artifact@v3
with:
name: ${{ env.DIST }}
name: ${{ steps.ostag.outputs.ostag }}
path: |
./code.json
./code.md
Expand Down Expand Up @@ -158,14 +158,20 @@ jobs:
echo "$repo current version is $current"
echo "$repo next version is $next"
- name: Get OS tag
id: ostag
run: |
ostag=$(python -c "from modflow_devtools.ostags import get_ostag; print(get_ostag())")
echo "ostag=$ostag" >> $GITHUB_OUTPUT
- name: Download distribution
uses: actions/download-artifact@v3
with:
name: ${{ env.DIST }}
path: ${{ env.DIST }}
name: ${{ steps.ostag.outputs.ostag }}
path: ${{ steps.ostag.outputs.ostag }}

- name: List distribution files
run: ls -l ${{ env.DIST }}
run: ls -l ${{ steps.ostag.outputs.ostag }}

- name: Create release body header
shell: python
Expand All @@ -180,7 +186,7 @@ jobs:
- name: Build release body
run: |
cat Header.md ${{ env.DIST }}/code.md > BodyFile.md
cat Header.md ${{ steps.ostag.outputs.ostag }}/code.md > BodyFile.md
cat BodyFile.md
# interactive debugging
Expand All @@ -193,8 +199,8 @@ jobs:
id: update-readme
run: |
# update readme from metadata
cp ${{ env.DIST }}/code.md code.md
cp ${{ env.DIST }}/code.json code.json
cp ${{ steps.ostag.outputs.ostag }}/code.md code.md
cp ${{ steps.ostag.outputs.ostag }}/code.json code.json
python scripts/update_readme.py
# determine whether changes need to be committed
Expand Down Expand Up @@ -241,7 +247,7 @@ jobs:
tag: ${{ steps.next-tag.outputs.tag }}
name: "MODFLOW and related programs binary executables"
bodyFile: "./BodyFile.md"
artifacts: "${{ env.DIST }}/*"
artifacts: "${{ steps.ostag.outputs.ostag }}/*"
draft: false
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit e5b3405

Please sign in to comment.