Skip to content

Fix desktop distribution #41

Fix desktop distribution

Fix desktop distribution #41

name: Build
on:
push:
tags:
- '*'
branches:
- master
pull_request:
# 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: read
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: production
runs-on: ubuntu-22.04
env:
CONVEYOR_AGREE_TO_LICENSE: "1"
# APP_VERSION: ${{ github.ref_name }}
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
conveyor_version: "8.0"
cache_key: conveyor-${{ matrix.os }}-${{ matrix.arch }}
- uses: actions/upload-artifact@v4
with:
name: download-page
path: output
retention-days: 1
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: [conveyor]
# steps:
# - name: Download a single artifact
# uses: actions/download-artifact@v4
# with:
# name: download-page
# path: download
# - run: mv download/download.html download/index.html
# - name: Setup Pages
# uses: actions/configure-pages@v3
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v1
# with:
# path: '.'
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2