feat: branch specific action runs

This commit is contained in:
PandaDEV 2024-11-15 18:19:22 +10:00
parent fbd159c68b
commit 3c54fa284a
No known key found for this signature in database
GPG key ID: 13EFF9BAF70EE75C

View file

@ -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