diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9170261..b992a7f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,6 +2,12 @@ name: build on: workflow_call: + inputs: + ref: + description: Branch or tag to checkout + required: false + default: teaser-2026 + type: string secrets: USER_AUTH: required: true @@ -17,6 +23,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 + with: + ref: ${{ inputs.ref }} - name: Setup Bun uses: oven-sh/setup-bun@v2 diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 9f6a43f..630df8a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,10 +4,19 @@ on: push: branches: - main + workflow_dispatch: + inputs: + ref: + description: Branch or tag to build and deploy + required: false + default: teaser-2026 + type: string jobs: build: uses: ./.github/workflows/build.yml + with: + ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ref || github.ref_name }} secrets: USER_AUTH: ${{ secrets.USER_AUTH }}