99env :
1010 PYTHON_VERSION : ' 3.14'
1111
12- # Required for creating a new GitHub release
13- permissions :
14- contents : write
15-
1612jobs :
1713 build-app-packages :
1814 strategy :
6157 tar -xvzf $ASSETS/taxonomy.tar.gz --directory $ASSETS/
6258 rm $ASSETS/taxonomy.tar.gz
6359 tar -C dist/naturtag/ -czvf naturtag-${{ matrix.dist_name }}.tar.gz .
64- echo 'DIST_NAME=${{ matrix.dist_name }}' >> $GITHUB_ENV
6560
6661 # Build Windows installer with Inno Setup
6762 - name : Install Inno Setup
@@ -105,35 +100,35 @@ jobs:
105100
106101 # Upload workflow artifacts
107102 - name : Upload pyinstaller package
108- uses : actions/upload-artifact@v6
103+ uses : actions/upload-artifact@v7
109104 with :
110- name : naturtag-${{ env.DIST_NAME }}.tar.gz
111- path : naturtag-${{ env.DIST_NAME }}.tar.gz
105+ name : naturtag-${{ matrix.dist_name }}.tar.gz
106+ path : naturtag-${{ matrix.dist_name }}.tar.gz
112107
113108 - name : Upload disk image (macOS)
114109 if : startsWith(matrix.os, 'macos')
115- uses : actions/upload-artifact@v6
110+ uses : actions/upload-artifact@v7
116111 with :
117112 name : naturtag.dmg
118113 path : dist/naturtag.dmg
119114
120115 - name : Upload FPM workflow artifacts (Linux)
121116 if : startsWith(matrix.os, 'ubuntu')
122- uses : actions/upload-artifact@v6
117+ uses : actions/upload-artifact@v7
123118 with :
124119 name : naturtag-fpm
125120 path : dist/naturtag.*
126121
127122 - name : Upload AppImage (Linux)
128123 if : startsWith(matrix.os, 'ubuntu')
129- uses : actions/upload-artifact@v6
124+ uses : actions/upload-artifact@v7
130125 with :
131126 name : naturtag.AppImage
132127 path : dist/naturtag.AppImage
133128
134129 - name : Upload Windows installer
135130 if : startsWith(matrix.os, 'windows')
136- uses : actions/upload-artifact@v6
131+ uses : actions/upload-artifact@v7
137132 with :
138133 name : naturtag-installer.exe
139134 path : dist/naturtag-installer.exe
@@ -143,19 +138,20 @@ jobs:
143138 if : startsWith(github.ref, 'refs/tags/')
144139 runs-on : ubuntu-latest
145140 needs : build-app-packages
141+ permissions :
142+ contents : write
146143 steps :
147144 - uses : actions/download-artifact@v7
148- - name : Collect artifacts from workflow subdirs
149- run : |
150- find . -type d -depth -name 'naturtag*' -exec mv {} {}_dir \;
151- find . -type f -mindepth 2 -exec mv -- {} . \;
152- rmdir *_dir
153- ls -ARl
145+ with :
146+ pattern : naturtag*
147+ path : release-assets
148+ merge-multiple : true
149+ - run : ls -l release-assets/
154150
155151 - name : Create release
156152 uses : softprops/action-gh-release@v2
157153 with :
158- files : ' naturtag*'
154+ files : ' release-assets/ naturtag*'
159155 body : |
160156 See changelog for release details: https://github.com/pyinat/naturtag/blob/main/HISTORY.md
161157 See docs for installation instructions: https://naturtag.readthedocs.io/en/stable/installation.html
0 commit comments