Compare commits

..

5 Commits

Author SHA1 Message Date
Itsigo
72feec5a27 fixed path in worklflow 2025-11-22 21:04:29 +01:00
Itsigo
a6aa899f9f correct filename 2025-11-22 20:54:42 +01:00
Itsigo
9753d5b175 added rename step 2025-11-22 20:52:51 +01:00
Itsigo
ec38ccf681 linux build flags 2025-11-22 20:50:53 +01:00
Itsigo
f474816a80 release action 2025-11-22 19:49:55 +00:00
2 changed files with 45 additions and 1 deletions

44
.github/workflows/go.yml vendored Normal file
View File

@@ -0,0 +1,44 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Simple Go Release
on:
push:
tags: ['v*']
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v4
with:
go-version: '1.25'
- name: Setup
run: |
make setup
- name: Build
run: |
make build
- name: Rename
run: |
cp tmp/main pocketmovie
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
body: "Automated release for ${{ github.ref_name }}"
files: |
pocketmovie

View File

@@ -5,7 +5,7 @@ run:
build:
@templ generate
@sqlc generate
@go build -o tmp/main cmd/api/main.go
@GOAMD64="v1" GOARCH="amd64" GOOS="linux" go build -ldflags="-s -w" -o tmp/main cmd/api/main.go
setup:
@command -v templ >/dev/null 2>&1 || { \