Skip to content

Commit

Permalink
Fix for build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahbrown41 committed Feb 4, 2024
1 parent ec5847a commit f0e5320
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ on:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
Expand All @@ -29,16 +28,3 @@ jobs:

- name: Build Raspberry Pi
run: env GOOS=linux GOARCH=arm GOARM=5 go build -v -o ./family-dashboard-pi .

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
Changes in this Release
draft: true
prerelease: true
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# .github/workflows/release.yaml

on:
release:
types: [created]

permissions:
contents: write
packages: write

jobs:
releases-matrix:
name: Release Go Binary
runs-on: ubuntu-latest
strategy:
matrix:
goos: [linux, darwin]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
project_path: "./family-dashboard"
binary_name: "family-dashboard"
extra_files: LICENSE README.md

0 comments on commit f0e5320

Please sign in to comment.