Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
habedi committed Jan 17, 2025
1 parent 1d42158 commit b075c6d
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 58 deletions.
20 changes: 1 addition & 19 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Linux Build

on:
workflow_dispatch:
push:
tags:
- 'v*' # Trigger on version tags (e.g., v1.0.0)

jobs:
build:
Expand Down Expand Up @@ -39,24 +36,9 @@ jobs:
- name: List Build Directory
run: ls -R bin

# Upload Build Artifact (always runs)
# Upload Build Artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: gogg-linux-amd64
path: 'bin/gogg'

# Conditional Release Creation (only runs on tag push)
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "bin/gogg"
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}
- Built for Linux (amd64)
draft: false
prerelease: false
21 changes: 1 addition & 20 deletions .github/workflows/build_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@ name: MacOS Build

on:
workflow_dispatch:
push:
tags:
- 'v*' # Trigger on version tags (e.g., v1.0.0)

jobs:
build:
runs-on: macos-latest
Expand Down Expand Up @@ -39,24 +35,9 @@ jobs:
- name: List Build Directory
run: ls -R bin

# Upload Build Artifact (always runs)
# Upload Build Artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: gogg-macos-universal
path: 'bin/gogg'

# Conditional Release Creation (only runs on tag push)
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "bin/gogg"
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}
- Built for macOS Universal Binary
draft: false
prerelease: false
20 changes: 1 addition & 19 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Windows Build

on:
workflow_dispatch:
push:
tags:
- 'v*' # Trigger on version tags (e.g., v1.0.0)

jobs:
build:
Expand Down Expand Up @@ -39,24 +36,9 @@ jobs:
- name: List Build Directory
run: ls -R bin

# Upload Build Artifact (always runs)
# Upload Build Artifact
- name: Upload Build Artifact
uses: actions/upload-artifact@v4
with:
name: gogg-windows-amd64
path: 'bin/gogg.exe'

# Conditional Release Creation (only runs on tag push)
- name: Create GitHub Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: "bin/gogg.exe"
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}
- Built for Windows (amd64)
draft: false
prerelease: false
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Create Release

on:
push:
tags:
- 'v*' # Trigger only on version tags

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Create GitHub Release
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ${{ github.ref_name }}
tag: ${{ github.ref_name }}
body: |
Release version ${{ github.ref_name }}
- Binaries for Linux (amd64), MacOS (Universal), and Windows (amd64)
draft: false
prerelease: false

0 comments on commit b075c6d

Please sign in to comment.