Skip to content

Commit

Permalink
Update release action
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Mar 21, 2024
1 parent f260431 commit c8014ae
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,23 @@ name: Release

on:
workflow_dispatch:
inputs:
version_suffix:
description: 'The version suffix for this manual build.'
required: true

jobs:
build-linux:
runs-on: ubuntu-latest

env:
VERSION_SUFFIX: ${{ github.event.inputs.version_suffix }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup dependencies
- run: rustup update stable && rustup default stable

- name: Build
Expand All @@ -19,17 +28,22 @@ jobs:
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
files: |
target/release/kuuubedit_amd64
name: kuuubedit v${{ github.ref_name }}
files: target/release/kuuubedit_amd64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-win:
runs-on: windows-latest

env:
VERSION_SUFFIX: ${{ github.event.inputs.version_suffix }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup dependencies
- run: rustup update stable && rustup default stable

- name: Build
Expand All @@ -39,6 +53,7 @@ jobs:
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'workflow_dispatch' }}
with:
name: kuuubedit v${{ github.ref_name }}
files: target/release/kuuubedit.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c8014ae

Please sign in to comment.