Skip to content

Commit

Permalink
Work on release step.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmorpheme committed Jun 14, 2023
1 parent bea9acf commit a03879b
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,17 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- run: cargo check

fmt:
name: Rustfmt
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@master
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
Expand Down Expand Up @@ -126,3 +124,23 @@ jobs:
with:
name: fimbl-${{ matrix.target }}-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
path: target/${{ matrix.target }}/release/fimbl

release:
name: Create tag & GitHub release
needs:
- build-release-candidate
steps:
- uses: actions/download-artifact@v2
- name: Display structure of downloaded files
run: ls -R
- name: Create release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
draft: true
prerelease: false
files: |
fimbl-x86_64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
fimbl-aarch64-apple-darwin-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
fimbl-x86_64-unknown-linux-gnu-${{ env.MAJOR_VERSION}}.${{ env.MINOR_VERSION }}.${{ github.run_number }}
generate_release_notes: true

0 comments on commit a03879b

Please sign in to comment.