Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
Hopefully fix up the release process
  • Loading branch information
mattgodbolt authored Oct 4, 2024
1 parent e8f74d5 commit 5ea18f3
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Create Rust release

on:
push:
tags:
- 'v0.1.*'
on: push

env:
CARGO_TERM_COLOR: always
Expand Down Expand Up @@ -32,13 +29,13 @@ jobs:
- name: Build
run: cargo build --release --verbose --target=${{ matrix.target }}
- name: Ensure version is correct
run: rozy/target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF_NAME | cut -c2-)"
run: target/${{ matrix.target }}/release/ozy --version | grep "$(echo $GITHUB_REF_NAME | cut -c2-)"
- name: Rename
run: mv rozy/target/${{ matrix.target }}/release/ozy rozy/target/${{ matrix.target }}/release/${{ matrix.asset }}
run: mv target/${{ matrix.target }}/release/ozy target/${{ matrix.target }}/release/${{ matrix.asset }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.asset }}
path: rozy/target/${{ matrix.target }}/release/${{ matrix.asset }}
path: target/${{ matrix.target }}/release/${{ matrix.asset }}

upload:
needs: [ build ]
Expand Down

0 comments on commit 5ea18f3

Please sign in to comment.