Skip to content

Commit

Permalink
Add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
rajshrimohanks committed Oct 27, 2024
1 parent 7c4dd65 commit 644e897
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/beta.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release assets

on:
push:
branches:
- main

jobs:
build:
name: Build Release Assets
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: "1.23"

- name: Display the commit
run: echo ${{ github.sha }}

- name: Build
run: ./release.sh ${{ github.sha }}

# https://github.com/svenstaro/upload-release-action
- name: Upload release binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.sha }}
file: ./release/*
file_glob: true
overwrite: true
prerelease: true
body: "This is an untested version. Use at your own risk."
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
run: echo ${{ github.event.release.tag_name }}

- name: Build
run: ./release.sh
run: ./release.sh ${{ github.event.release.tag_name }}

# https://github.com/svenstaro/upload-release-action
- name: Upload the Rodeo binaries
- name: Upload release binaries
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 644e897

Please sign in to comment.