Skip to content

Fix: Wrong var usage #87

Fix: Wrong var usage

Fix: Wrong var usage #87

Workflow file for this run

name: Nightly build
on:
push:
branches: [ "develop" ]
jobs:
prepare-build:
name: Prepare build
runs-on: ubuntu-latest
outputs:
version: ${{ steps.previous-tag.outputs.tag }}-g${{ steps.shorten-sha.outputs.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-tags: true
sparse-checkout: |
README.md
- name: Get previous tag
id: previous-tag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 0.0.0
- name: Shorten sha
id: shorten-sha
run: |
sha=$(echo ${{ github.sha }} | cut -c 1-7) >> $GITHUB_OUTPUT
build-windows:
name: Build Windows
needs: prepare-build
uses: ./.github/workflows/dotnet-desktop.yml
with:
version: ${{ needs.prepare-build.outputs.version }}
version-name: Nightly
publish:
name: Publish release
needs: [prepare-build, build-windows]
uses: ./.github/workflows/publish-release.yml
with:
release-name: Latest nightly build
version-name: Nightly
artifact-x86: ${{ needs.build-windows.outputs.x86 }}
artifact-x64: ${{ needs.build-windows.outputs.x64 }}