Create release #80
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create release | |
run-name: Create release | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- v* | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: true | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
env: | |
BASE_HREF: ${{ vars.BASE_HREF }} | |
BUGSNAG_API_KEY: ${{ secrets.BUGSNAG_API_KEY }} | |
FIREBASE_WEB_CONFIG_JSON: ${{ secrets.FIREBASE_WEB_CONFIG_JSON }} | |
steps: | |
- id: get_version | |
name: Get version from tag | |
uses: JanneMattila/get-version-from-tag@v4 | |
- name: Set version to GitHub environment | |
run: | | |
echo "VERSION_NAME=${{ steps.get_version.outputs.version }}" >> $GITHUB_ENV | |
- name: Debug version | |
run: | | |
echo "$VERSION_NAME" | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build Web app | |
run: | | |
./gradlew :composeApp:wasmJsBrowserDistribution --quiet -Pbuildkonfig.flavor=release | |
- name: Create Desktop jar | |
if: false | |
run: | | |
./gradlew desktopJar --quiet -Pbuildkonfig.flavor=release | |
- name: Run Conveyor | |
if: false | |
uses: hydraulic-software/conveyor/actions/build@v15.1 | |
with: | |
signing_key: ${{ secrets.SIGNING_KEY }} | |
command: make site | |
agree_to_license: 1 | |
- name: Copy Web App to the output folder | |
run: | | |
mkdir build/web/ | |
cp -r composeApp/build/dist/wasmJs/productionExecutable/* build/web/ | |
- name: Copy conveyor artifacts to output folder | |
if: false | |
run: | | |
cp -r output/* build/web/ | |
- name: Setup Ruby | |
uses: ruby/setup-ruby@8575951200e472d5f2d95c625da0c7bec8217c42 # v1.161.0 | |
with: | |
ruby-version: '3.1' | |
- name: Create Blog | |
working-directory: ./blog | |
env: | |
JEKYLL_ENV: production | |
run: | | |
bundle update | |
bundle exec jekyll build -d ../build/web/blog | |
- name: Upload static content | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './build/web/' | |
- name: Deploy to GitHub Pages | |
uses: actions/deploy-pages@v4 | |
id: deployment |