mirror of
https://github.com/0PandaDEV/Qopy.git
synced 2025-04-21 13:14:04 +02:00
feat: branch specific action runs
This commit is contained in:
parent
fbd159c68b
commit
3c54fa284a
1 changed files with 10 additions and 0 deletions
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -8,6 +8,12 @@ on:
|
|||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: 'Branch or tag to build e.g. main or v0.1.0'
|
||||
required: true
|
||||
type: string
|
||||
default: 'main'
|
||||
|
||||
jobs:
|
||||
prepare:
|
||||
|
@ -16,6 +22,8 @@ jobs:
|
|||
version: ${{ steps.get_version.outputs.VERSION }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref }}
|
||||
- name: Get version
|
||||
id: get_version
|
||||
run: echo "VERSION=$(node -p "require('./src-tauri/tauri.conf.json').version")" >> $GITHUB_OUTPUT
|
||||
|
@ -31,6 +39,8 @@ jobs:
|
|||
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref }}
|
||||
|
||||
- name: setup node
|
||||
uses: actions/setup-node@v4
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue