Skip to content

Merge pull request #138 from fmasa/join-fix #17

Merge pull request #138 from fmasa/join-fix

Merge pull request #138 from fmasa/join-fix #17

name: Build
on:
# Runs on pushes targeting the default branch
push:
tags:
- '*'
# 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'
- run: ./gradlew jar
- uses: hydraulic-software/conveyor/actions/build@v1
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@v3
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@v3
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