Skip to content

Commit

Permalink
👷 update deployment to use other variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussa committed Jan 26, 2024
1 parent c1d1186 commit 5aa7597
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

- name: Modify manifest
run: |
sed -i.bak "s|latest|${{ github.event.release.name }}|g" module.json
sed -i.bak "s|latest|${{ github.event.release.tag_name }}|g" module.json
rm module.json.bak
- name: Create zip file
Expand All @@ -30,6 +30,12 @@ jobs:
name: ${{ github.event.release.name }}
artifacts: './${{ env.package_type }}.json, ./${{ env.package_type }}.zip'
body: ${{ github.event.release.body }}

- name: Get Compatibility
run: |
echo 'COMPATIBILITY<<EOF' >> $GITHUB_ENV
cat system.json | jq .compatibility >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV
- name: Send package to foundry
run: |
Expand All @@ -39,14 +45,10 @@ jobs:
--data '{
"id": "image-z00m",
"release": {
"version": "${{ github.event.release.name }}",
"manifest": "https://github.com/cussa/image-z00m/releases/download/${{ github.event.release.name }}/module.json",
"notes": "https://github.com/cussa/image-z00m/releases/tag/${{ github.event.release.name }}",
"compatibility": {
"minimum": "${{ vars.FOUNDRY_MINIMUM }}",
"verified": "${{ vars.FOUNDRY_VERIFIED }}",
"maximum": ""
}
"version": "${{ github.event.release.tag_name }}",
"manifest": "https://github.com/cussa/image-z00m/releases/download/${{ github.event.release.tag_name }}/module.json",
"notes": "https://github.com/cussa/image-z00m/releases/tag/${{ github.event.release.tag_name }}",
"compatibility": ${{ env.COMPATIBILITY }}
}
}')
Expand Down

0 comments on commit 5aa7597

Please sign in to comment.