4242 - name : Save deployment id
4343 uses : actions/upload-artifact@master
4444 with :
45+ name : artifacts1
4546 path : |
4647 deployment_id
4748 env
8586 - name : Save generated info
8687 uses : actions/upload-artifact@master
8788 with :
89+ name : artifacts2
8890 path : |
8991 new_version
9092 title
@@ -115,8 +117,8 @@ jobs:
115117 - name : Parse info generated in preparation job
116118 id : info
117119 run : |
118- echo "new_version=$(cat artifacts/artifact /new_version)" >> $GITHUB_OUTPUT
119- echo "title=$(cat artifacts/artifact /title)" >> $GITHUB_OUTPUT
120+ echo "new_version=$(cat artifacts/artifacts2 /new_version)" >> $GITHUB_OUTPUT
121+ echo "title=$(cat artifacts/artifacts2 /title)" >> $GITHUB_OUTPUT
120122 - uses : xt0rted/pull-request-comment-branch@v1 # check out branch of PR
121123 id : comment-branch
122124 - uses : actions/checkout@v3
@@ -192,11 +194,11 @@ jobs:
192194 - name : Parse info generated in preparation job
193195 id : info
194196 run : |
195- echo "new_version=$(cat artifacts/artifact /new_version)" >> $GITHUB_OUTPUT
196- echo "title=$(cat artifacts/artifact /title)" >> $GITHUB_OUTPUT
197- mv artifacts/artifact /new_version new_version
198- mv artifacts/artifact /title title
199- mv artifacts/artifact /latest_changes latest_changes
197+ echo "new_version=$(cat artifacts/artifacts2 /new_version)" >> $GITHUB_OUTPUT
198+ echo "title=$(cat artifacts/artifacts2 /title)" >> $GITHUB_OUTPUT
199+ mv artifacts/artifacts2 /new_version new_version
200+ mv artifacts/artifacts2 /title title
201+ mv artifacts/artifacts2 /latest_changes latest_changes
200202 mkdir Release
201203 mv artifacts/app/${{ env.projname }}.zip Release/
202204 - name : Prepare Sparkle update creation # Import Sparkle private key, remove unnecessary files in Release folder
@@ -206,7 +208,9 @@ jobs:
206208 echo -n "$PRIVATE_SPARKLE_KEY" > ./Configuration/sparkle_private_key
207209 - name : Generate Sparkle notes # generate Sparkle release notes (convert Markdown to HTML)
208210 run : |
209- pip3 install -r Configuration/requirements.txt
211+ python3 -m venv penv
212+ source penv/bin/activate
213+ python3 -m pip install -r Configuration/requirements.txt
210214 python3 ./Configuration/generate_html_for_sparkle_release.py
211215 mv Release/latest_changes.html Release/${{ env.projname }}.html
212216 - name : Update appcast # generate / update appcast.xml with edDSA key
@@ -272,11 +276,11 @@ jobs:
272276 - name : Parse info generated in preparation job
273277 id : info
274278 run : |
275- echo "new_version=$(cat artifacts/artifact /new_version)" >> $GITHUB_OUTPUT
276- echo "title=$(cat artifacts/artifact /title)" >> $GITHUB_OUTPUT
277- mv artifacts/artifact /new_version new_version
278- mv artifacts/artifact /title title
279- mv artifacts/artifact /latest_changes latest_changes
279+ echo "new_version=$(cat artifacts/artifacts2 /new_version)" >> $GITHUB_OUTPUT
280+ echo "title=$(cat artifacts/artifacts2 /title)" >> $GITHUB_OUTPUT
281+ mv artifacts/artifacts2 /new_version new_version
282+ mv artifacts/artifacts2 /title title
283+ mv artifacts/artifacts2 /latest_changes latest_changes
280284 mkdir Release
281285 mv artifacts/app/${{ env.projname }}.zip Release/
282286 - name : Override versions in project # set new version in project
@@ -336,7 +340,7 @@ jobs:
336340 - name : Parse info generated in preparation job
337341 id : info
338342 run : |
339- echo "new_version=$(cat artifacts/artifact /new_version)" >> $GITHUB_OUTPUT
343+ echo "new_version=$(cat artifacts/artifacts2 /new_version)" >> $GITHUB_OUTPUT
340344 - name : Update brew formula # update brew formula
341345 env :
342346 HOMEBREW_GITHUB_API_TOKEN : ${{ secrets.BREW_TOKEN }}
@@ -355,9 +359,9 @@ jobs:
355359 - name : Parse info generated in preparation job
356360 id : info
357361 run : |
358- echo "new_version=$(cat artifacts/artifact /new_version)" >> $GITHUB_OUTPUT
359- echo "deployment_id=$(cat artifacts/artifact /deployment_id)" >> $GITHUB_OUTPUT
360- echo "env=$(cat artifacts/artifact /env)" >> $GITHUB_OUTPUT
362+ echo "new_version=$(cat artifacts/artifacts2 /new_version)" >> $GITHUB_OUTPUT
363+ echo "deployment_id=$(cat artifacts/artifacts1 /deployment_id)" >> $GITHUB_OUTPUT
364+ echo "env=$(cat artifacts/artifacts1 /env)" >> $GITHUB_OUTPUT
361365 - uses : xt0rted/pull-request-comment-branch@v1 # check out branch of PR
362366 id : comment-branch
363367 - uses : actions/checkout@v3 # checkout again, because the previous checkout is detached
0 commit comments