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 :
1113
1214# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
1315permissions :
14- contents : read
16+ contents : write
1517 pages : write
1618 id-token : write
1719
@@ -25,54 +27,44 @@ 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
35- - uses : actions/setup-java@v3
36- with :
37- distribution : ' temurin'
38- java-version : ' 17'
39- - name : Setup Gradle
40- uses : gradle/actions/setup-gradle@v3
41-
42- - run : ./gradlew jvmJar
43-
44- -
uses :
hydraulic-software/conveyor/actions/[email protected] 45- with :
46- command : make site
47- signing_key : ${{ secrets.SIGNING_KEY }}
48- agree_to_license : 1
49- 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
39+ # - uses: actions/setup-java@v3
40+ # with:
41+ # distribution: 'temurin'
42+ # java-version: '17'
43+ # - name: Setup Gradle
44+ # uses: gradle/actions/setup-gradle@v3
45+ #
46+ # - run: ./gradlew jvmJar
47+ #
48+ # - uses: hydraulic-software/conveyor/actions/[email protected] 49+ # with:
50+ # command: make site
51+ # signing_key: ${{ secrets.SIGNING_KEY }}
52+ # agree_to_license: 1
53+ # cache_key: conveyor-${{ matrix.os }}-${{ matrix.arch }}
54+ - run : mkdir -p output && touch output/test.txt
55+ - run : mkdir -p pages_output/download
56+ - run : touch pages_output/download/{download.html,icon.png}
57+ - name : Upload artifacts to Github Release
58+ env :
59+ GH_TOKEN : ${{ github.token }}
60+ # run: gh release upload "$GITHUB_REF_NAME" output/* --clobber
61+ run : gh release upload "3.22.0" output/* --clobber
7062 - name : Setup Pages
7163 uses : actions/configure-pages@v3
7264 - name : Upload artifact
73- uses : actions/upload-pages-artifact@v1
65+ uses : actions/upload-pages-artifact@v3
7466 with :
75- path : ' . '
67+ path : pages_output
7668 - name : Deploy to GitHub Pages
7769 id : deployment
78- uses : actions/deploy-pages@v2
70+ uses : actions/deploy-pages@v4
0 commit comments