diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6c199b..214f7f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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