Skip to content

Commit

Permalink
Create Github actions to publish release files
Browse files Browse the repository at this point in the history
  • Loading branch information
JGottschick authored May 2, 2024
1 parent 7205dc7 commit c6f53b6
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will build the dredger packages
name: Go

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22'

- name: Set up tools
run: |
go install golang.org/x/tools/cmd/goimports@latest
go install github.com/a-h/templ/cmd/templ@latest
- name: Templ
run: templ generate web/pages/*.templ

- name: Build
run: go build -o dredger

- name: Release linux binary
uses: Shopify/[email protected]
with:
name: Linux Binary
path: dredger

0 comments on commit c6f53b6

Please sign in to comment.