Skip to content

Commit 702292d

Browse files
authored
Fixing release workflow (#5)
Bugfix for release workflow
1 parent 112770e commit 702292d

2 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,13 @@ on:
99
artifacts:
1010
required: true
1111
type: string
12-
# TODO: eventually we can auto-generate this
12+
# you'll need to add these into your consuming job to expose them
1313
tag:
1414
required: true
1515
type: string
1616
name:
1717
required: true
1818
type: string
19-
body:
20-
required: true
21-
type: string
2219

2320
jobs:
2421
setup-and-build:
@@ -32,6 +29,9 @@ jobs:
3229
permissions:
3330
contents: write
3431
steps:
32+
- name: Checkout
33+
uses: actions/checkout@v3
34+
3535
- name: Restore Rust Dependencies
3636
uses: actions/cache/restore@v3
3737
with:
@@ -52,7 +52,7 @@ jobs:
5252
with:
5353
artifacts: ${{inputs.artifacts}}
5454
name: ${{inputs.name}}
55-
body: ${{inputs.body}}
55+
# can eventually pull commit messages to include in the body
5656
tag: ${{inputs.tag}}
5757
# will remove this once the tool is out of the alpha/pre-release stage
5858
prerelease: true

.github/workflows/windows_release.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
workflow_dispatch:
55
branches:
66
- main
7+
inputs:
8+
tag:
9+
required: true
10+
type: string
11+
name:
12+
required: true
13+
type: string
714

815
permissions:
916
# required for us to upload artifacts from the release
@@ -17,4 +24,6 @@ jobs:
1724
with:
1825
# all other inputs will be done by hand
1926
platform: windows-2022
20-
artifacts: "target/release/benchmark.exe,target/release/permutor-cli.exe"
27+
artifacts: "target/release/benchmark.exe,target/release/permutor-cli.exe"
28+
tag: ${{inputs.tag}}
29+
name: ${{inputs.name}}

0 commit comments

Comments
 (0)