Skip to content

Commit

Permalink
fix: allow to specify the version to use
Browse files Browse the repository at this point in the history
  • Loading branch information
spaenleh committed Dec 12, 2024
1 parent 2e46c28 commit 7e523be
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:

# Allows to run the workflow manually from the Actions tab
workflow_dispatch:
inputs:
version:
type: string
description: "Tagged version to deploy"
required: true

permissions:
id-token: write # This is required for requesting the JWT
Expand All @@ -27,7 +32,7 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.client_payload.tag }}
ref: ${{ github.event.client_payload.tag || inputs.version }}

- uses: pnpm/action-setup@v4
name: Install pnpm
Expand All @@ -47,7 +52,7 @@ jobs:
- name: pnpm build
# Set environment variables required to perform the build. These are only available to this step
env:
VITE_VERSION: ${{ github.event.client_payload.tag }}
VITE_VERSION: ${{ github.event.client_payload.tag || inputs.version }}
VITE_GRAASP_DOMAIN: ${{ vars.VITE_GRAASP_DOMAIN }}
VITE_GRAASP_API_HOST: ${{ vars.VITE_GRAASP_API_HOST }}
VITE_GRAASP_BUILDER_HOST: ${{ vars.VITE_GRAASP_BUILDER_HOST }}
Expand Down

0 comments on commit 7e523be

Please sign in to comment.