Skip to content

Upload desktop binaries as Github Release assets #55

Upload desktop binaries as Github Release assets

Upload desktop binaries as Github Release assets #55

name: Build
on:
# Runs on pushes targeting the default branch
push:
tags:
- '*'
branches:
- desktop-releases
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: write
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Single deploy job since we're just deploying
conveyor:
name: "Create desktop distributions"
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-22.04
env:
CONVEYOR_AGREE_TO_LICENSE: "1"
APP_VERSION: 3.22.0
steps:
- uses: actions/checkout@v2
# - uses: actions/setup-java@v3
# with:
# distribution: 'temurin'
# java-version: '17'
# - name: Setup Gradle
# uses: gradle/actions/setup-gradle@v3
#
# - run: ./gradlew jvmJar
#
# - uses: hydraulic-software/conveyor/actions/[email protected]
# with:
# command: make site
# signing_key: ${{ secrets.SIGNING_KEY }}
# agree_to_license: 1
# cache_key: conveyor-${{ matrix.os }}-${{ matrix.arch }}
- run: mkdir -p output && touch output/test.txt
- run: mkdir -p pages_output/download
- run: touch pages_output/download/{download.html,icon.png}
- name: Upload artifacts to Github Release
env:
GH_TOKEN: ${{ github.token }}
# run: gh release upload "$GITHUB_REF_NAME" output/* --clobber
run: gh release upload "3.22.0" output/* --clobber
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: pages_output
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4