Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 authored Oct 10, 2024
1 parent b48bb4c commit 22139ff
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Build Executable

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
inputs:
tag:
description: Release git tag
type: string
required: true

env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: macos-13
permissions:
contents: write
packages: write
pull-requests: write
repository-projects: write
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Rename
run: mv target/amdhelper-tui target/amdhelper
- name: Publish release
if: ${{ github.event_name == 'workflow_dispatch' }}
uses: ncipollo/release-action@v1
with:
artifacts: ./target/amdhelper
tag: ${{ inputs.tag }}
name: AMDHelper ${{ inputs.tag }}
allowUpdates: true
artifactErrorsFailBuild: false
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 22139ff

Please sign in to comment.