Skip to content

Commit

Permalink
Use kick for releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Dec 23, 2023
1 parent 8af9ab1 commit 3f55aaf
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,15 @@ on:
type: choice
options:
- nightly
- release
- "%date"
push:
branches:
- release

env:
KICK_VERSION: "${{github.event.inputs.version}} || nightly"
RUST_LOG: kick=trace

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -43,6 +47,8 @@ jobs:
channel: ${{github.event.inputs.channel}}
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: udoprog/kick@nightly
- run: cargo build --release
- run: cargo run -p builder -- --channel ${{steps.release.outputs.channel}}
- uses: actions/upload-artifact@v1
with:
Expand All @@ -66,13 +72,7 @@ jobs:
with: {name: dist-windows-latest, path: dist}
- uses: actions/download-artifact@v1
with: {name: dist-ubuntu-latest, path: dist}
- uses: udoprog/github-release@channel
id: release
with:
channel: ${{github.event.inputs.channel}}
- uses: udoprog/github-release@v1
with:
files: "dist/*"
name: ${{steps.release.outputs.channel}}
token: ${{secrets.GITHUB_TOKEN}}
prerelease: true
- uses: udoprog/kick@nightly
- run: kick github-release --upload "dist/*" --github-action
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 3f55aaf

Please sign in to comment.