Skip to content

chore(actions): add dispatch step #5

chore(actions): add dispatch step

chore(actions): add dispatch step #5

Workflow file for this run

name: Build Application
on:
push:
branches-ignore:
- "renovate/**"
paths-ignore:
- "**.md"
- "**/LICENSE"
- "flake.lock"
- "packages/**"
- ".github/ISSUE_TEMPLATE/**"
- ".markdownlint**"
workflow_dispatch:
workflow_call:
jobs:
build_release:
strategy:
matrix:
build_type: [Release, RelWithDebInfo, MinSizeRel]
name: Build
uses: ./.github/workflows/build.yml
with:
build_type: ${{ matrix.build_type }}
is_qt_cached: true
create_release:
needs: build_release
runs-on: ubuntu-latest
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: "true"
path: "PrismLauncher-source"
- name: Download artifacts
uses: actions/download-artifact@v4
- name: Grab and store version
working-directory: "PrismLauncher-source"
run: |
tag_name=$(git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g')
echo "VERSION=$tag_name" >> $GITHUB_ENV
- name: Create release
id: create_release
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ env.VERSION }}
name: Nightly ${{ env.GITHUB_SHA }}
draft: true
prerelease: false
files: |
*.zip