Skip to content

Commit

Permalink
Update version and modify asset details in project files
Browse files Browse the repository at this point in the history
The changes in module.json reflect an update to version 1.0.3, along with a new corresponding download link. Additionally, updates were made to asset_path and asset_name in the GitHub workflow file (release-on-commit-module.yml) aligning with the above changes.
  • Loading branch information
mcules committed Dec 18, 2023
1 parent ae05570 commit e9bc778
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release-on-commit-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ jobs:
- name: Compress Project
run: zip -r project.zip .

- name: Get commit message
id: get_commit_msg
run: |
echo "::set-output name=commit_msg::$(git log -1 --pretty=format:"%s")"
- name: Get release name from module.json
id: get_release_name
run: |
Expand All @@ -37,6 +42,7 @@ jobs:
with:
tag_name: ${{ steps.get_release_name.outputs.release_name }}
release_name: ${{ steps.get_release_name.outputs.release_name }}
body: ${{ steps.get_commit_msg.outputs.commit_msg }}
draft: false
prerelease: false

Expand All @@ -47,6 +53,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./project.zip
asset_name: project.zip
asset_path: ./main.zip
asset_name: main.zip
asset_content_type: application/zip
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
},
"url": "https://github.com/mcules/FoundryVTT-digitable-initiative-led",
"manifest": "https://github.com/mcules/FoundryVTT-digitable-initiative-led/raw/main/module.json",
"version": "1.0.2",
"download": "https://github.com/mcules/workflow-test/archive/refs/tags/v1.0.2.zip"
"version": "1.0.3",
"download": "https://github.com/mcules/FoundryVTT-digitable-initiative-led/releases/download/v1.0.3/main.zip"
}

0 comments on commit e9bc778

Please sign in to comment.