55 push :
66 tags :
77 - ' *'
8+ branches :
9+ - desktop-releases
810
911 # Allows you to run this workflow manually from the Actions tab
1012 workflow_dispatch :
@@ -25,11 +27,13 @@ jobs:
2527 # Single deploy job since we're just deploying
2628 conveyor :
2729 name : " Create desktop distributions"
28- environment : production
30+ environment :
31+ name : github-pages
32+ url : ${{ steps.deployment.outputs.page_url }}
2933 runs-on : ubuntu-22.04
3034 env :
3135 CONVEYOR_AGREE_TO_LICENSE : " 1"
32- APP_VERSION : ${{ github.ref_name }}
36+ APP_VERSION : 3.22.0
3337 steps :
3438 - uses : actions/checkout@v2
3539 - uses : actions/setup-java@v3
@@ -47,32 +51,19 @@ jobs:
4751 signing_key : ${{ secrets.SIGNING_KEY }}
4852 agree_to_license : 1
4953 cache_key : conveyor-${{ matrix.os }}-${{ matrix.arch }}
50-
51- - uses : actions/upload-artifact@v4
52- with :
53- name : download-page
54- path : output
55- retention-days : 1
56-
57- deploy :
58- environment :
59- name : github-pages
60- url : ${{ steps.deployment.outputs.page_url }}
61- runs-on : ubuntu-latest
62- needs : [conveyor]
63- steps :
64- - name : Download a single artifact
65- uses : actions/download-artifact@v4
66- with :
67- name : download-page
68- path : download
69- - run : mv download/download.html download/index.html
54+ - run : mkdir -p pages_output/download
55+ - run : mv output/{download.html,icon.png} pages_output/download
56+ - name : Upload artifacts to Github Release
57+ env :
58+ GH_TOKEN : ${{ github.token }}
59+ # run: gh release upload "$GITHUB_REF_NAME" output/* --clobber
60+ run : gh release upload "3.22.0" output/* --clobber
7061 - name : Setup Pages
7162 uses : actions/configure-pages@v3
7263 - name : Upload artifact
73- uses : actions/upload-pages-artifact@v1
64+ uses : actions/upload-pages-artifact@v3
7465 with :
75- path : ' . '
66+ path : pages_output
7667 - name : Deploy to GitHub Pages
7768 id : deployment
78- uses : actions/deploy-pages@v2
69+ uses : actions/deploy-pages@v4
0 commit comments