Skip to content

Commit

Permalink
Make build not fail when release does not exist, and use nightly
Browse files Browse the repository at this point in the history
  • Loading branch information
djellemah committed Apr 27, 2024
1 parent 978e5b8 commit 1c79df1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: gh create release
# TODO use gh release list | grep -q ${{ github.ref_name }}
# to check that it's safe to run release delete
run: |
gh release delete ${{ github.ref_name }} --yes
gh release delete ${{ github.ref_name }} --yes; true # so it doesn't fail when the release doesn't exist
gh release create --latest ${{ github.ref_name }}
env:
GH_TOKEN: ${{ secrets.ACTION_TOKEN }}
Expand Down Expand Up @@ -47,6 +49,7 @@ jobs:
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- run: rustup default nightly
- name: compile
run: cargo build --release

Expand Down

0 comments on commit 1c79df1

Please sign in to comment.