Skip to content

Commit

Permalink
Update release build
Browse files Browse the repository at this point in the history
  • Loading branch information
udoprog committed Dec 23, 2023
1 parent 12c9096 commit 194d906
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,24 @@
name: Release

on:
workflow_dispatch:
inputs:
version:
description: 'Version to release'
required: true
default: 'nightly'
type: choice
options:
- nightly
- "%date"
push:
tags:
- '*'

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

jobs:
build:
runs-on: ${{matrix.os}}
Expand All @@ -16,9 +30,10 @@ jobs:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- uses: udoprog/github-release@tag
- uses: udoprog/kick@nightly
- run: kick define --github-action
id: release
- run: cargo run -p builder -- --version ${{steps.release.outputs.tag}}
- run: cargo run -p builder -- --version ${{steps.release.outputs.version}}
- uses: actions/upload-artifact@v3
with:
name: dist-${{matrix.os}}
Expand All @@ -37,9 +52,7 @@ jobs:
with: {name: dist-windows-latest, path: dist}
- uses: actions/download-artifact@v3
with: {name: dist-ubuntu-latest, path: dist}
- uses: udoprog/github-release@v1
with:
files: "dist/*"
name: ${{steps.release.outputs.tag}}
token: ${{secrets.GITHUB_TOKEN}}
prerelease: ${{steps.release.outputs.prerelease}}
- uses: udoprog/kick@nightly
- run: kick github-release --upload "dist/*" --github-action
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 194d906

Please sign in to comment.