File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,17 +18,20 @@ jobs:
1818 if [[ "${{ github.ref_name }}" != "$VERSION" ]]; then
1919 echo "Tag name ${{ github.ref_name }} does not match version in info.json: $VERSION"
2020 exit 1
21- fi
21+ fi
2222
2323 - name : Verify changelog
2424 run : |
25+ echo "Checking changelog for version ${{ github.ref_name }}..."
2526 if ! grep -q "Version: ${{ github.ref_name }}" changelog.txt; then
26- echo "Changelog does not contain an entry for version ${{ github.ref_name }}"
27- exit 1
27+ echo "ERROR: Changelog does not contain an entry for version ${{ github.ref_name }}"
28+ exit 1
2829 fi
30+ echo "Changelog verification successful!"
2931
30- - name : Create zip archive
31- run : zip -r creative-mod_${{ github.ref_name }}.zip . -x "*.git*" -x ".github*"
32+ - name : Create Factorio mod package
33+ id : package_mod
34+ uses : Roang-zero1/factorio-mod-package@master
3235
3336 - name : Create Release
3437 id : create_release
4750 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4851 with :
4952 upload_url : ${{ steps.create_release.outputs.upload_url }}
50- asset_path : creative-mod_ ${{ github.ref_name }}.zip
53+ asset_path : ${{ steps.package_mod.outputs.asset_path }}
5154 asset_name : creative-mod_${{ github.ref_name }}.zip
5255 asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments