Skip to content

Commit

Permalink
Allow running the 'release' action for an old version
Browse files Browse the repository at this point in the history
  • Loading branch information
jgilchrist committed Oct 18, 2024
1 parent c9f360f commit 5c00e48
Showing 1 changed file with 39 additions and 5 deletions.
44 changes: 39 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ name: Release

on:
workflow_dispatch:
inputs:
version:
description: Version (x.y)
required: true
push:
tags: "v*"

Expand All @@ -15,7 +19,13 @@ jobs:
engine-version: ${{ steps.determine-engine-version.outputs.version }}

steps:
- uses: actions/checkout@v4
- if: inputs.version == ''
uses: actions/checkout@v4

- if: inputs.version != ''
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }}

- id: determine-rust-version
name: Determine Rust version
Expand Down Expand Up @@ -48,7 +58,13 @@ jobs:
rustflags: "-Ctarget-feature=+crt-static"

steps:
- uses: actions/checkout@v4
- if: inputs.version == ''
uses: actions/checkout@v4

- if: inputs.version != ''
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }}

- name: Build
env:
Expand Down Expand Up @@ -82,7 +98,13 @@ jobs:
rustflags: "-Ctarget-feature=+crt-static"

steps:
- uses: actions/checkout@v4
- if: inputs.version == ''
uses: actions/checkout@v4

- if: inputs.version != ''
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }}

- name: Build
env:
Expand All @@ -104,7 +126,13 @@ jobs:
needs: [metadata]

steps:
- uses: actions/checkout@v4
- if: inputs.version == ''
uses: actions/checkout@v4

- if: inputs.version != ''
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }}

- name: Build
env:
Expand All @@ -129,7 +157,13 @@ jobs:
contents: write

steps:
- uses: actions/checkout@v4
- if: inputs.version == ''
uses: actions/checkout@v4

- if: inputs.version != ''
uses: actions/checkout@v4
with:
ref: v${{ inputs.version }}

- uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 5c00e48

Please sign in to comment.