Skip to content

Commit a03879b

Browse files
committed
Work on release step.
1 parent bea9acf commit a03879b

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

.github/workflows/build.yaml

+21-3
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,17 @@ jobs:
2121
- uses: actions/checkout@v3
2222
- uses: dtolnay/rust-toolchain@master
2323
with:
24-
profile: minimal
2524
toolchain: stable
2625
override: true
2726
- run: cargo check
2827

2928
fmt:
30-
name: Rustfmt
29+
name: Format
3130
runs-on: ubuntu-latest
3231
steps:
3332
- uses: actions/checkout@v3
3433
- uses: dtolnay/rust-toolchain@master
3534
with:
36-
profile: minimal
3735
toolchain: stable
3836
override: true
3937
- run: rustup component add rustfmt
@@ -126,3 +124,23 @@ jobs:
126124
with:
127125
name: fimbl-${{ matrix.target }}-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
128126
path: target/${{ matrix.target }}/release/fimbl
127+
128+
release:
129+
name: Create tag & GitHub release
130+
needs:
131+
- build-release-candidate
132+
steps:
133+
- uses: actions/download-artifact@v2
134+
- name: Display structure of downloaded files
135+
run: ls -R
136+
- name: Create release
137+
uses: softprops/action-gh-release@v1
138+
with:
139+
tag_name: ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
140+
draft: true
141+
prerelease: false
142+
files: |
143+
fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
144+
fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
145+
fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
146+
generate_release_notes: true

0 commit comments

Comments
 (0)