File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -18,17 +18,20 @@ jobs:
18
18
if [[ "${{ github.ref_name }}" != "$VERSION" ]]; then
19
19
echo "Tag name ${{ github.ref_name }} does not match version in info.json: $VERSION"
20
20
exit 1
21
- fi
21
+ fi
22
22
23
23
- name : Verify changelog
24
24
run : |
25
+ echo "Checking changelog for version ${{ github.ref_name }}..."
25
26
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
28
29
fi
30
+ echo "Changelog verification successful!"
29
31
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
32
35
33
36
- name : Create Release
34
37
id : create_release
47
50
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
48
51
with :
49
52
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 }}
51
54
asset_name : creative-mod_${{ github.ref_name }}.zip
52
55
asset_content_type : application/zip
You can’t perform that action at this time.
0 commit comments