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 5862d90
Showing 1 changed file with 38 additions and 5 deletions.
43 changes: 38 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release

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

Expand All @@ -15,7 +18,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 +57,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 +97,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 +125,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 +156,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 5862d90

Please sign in to comment.