Add Pre-Release Action

This commit is contained in:
aditya-K2
2023-05-24 02:50:55 +05:30
parent 8a9c0f0e0a
commit 1e0873568f

32
.github/workflows/pre-release.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Pre-Release
on:
push:
branches:
- master
workflow_dispatch:
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.19
- name: Install make
run: sudo apt update && sudo apt install build-essential
- name: Build All targets
run: make VERBOSE="-v" all
- name: Release Binary
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: true
automatic_release_tag: "pre-release"
title: "Pre-release"
files: |
bin/*