mirror of
https://github.com/Itsig0/pocketmovie.git
synced 2026-01-22 08:24:38 +00:00
Compare commits
9 Commits
5467ddcbba
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
72feec5a27 | ||
|
|
a6aa899f9f | ||
|
|
9753d5b175 | ||
|
|
ec38ccf681 | ||
|
|
f474816a80 | ||
|
|
d2547a0b7c | ||
|
|
76eec5f529 | ||
|
|
e7a36d8ddb | ||
|
|
5333533b68 |
44
.github/workflows/go.yml
vendored
Normal file
44
.github/workflows/go.yml
vendored
Normal 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
|
||||||
3
Makefile
3
Makefile
@@ -5,7 +5,7 @@ run:
|
|||||||
build:
|
build:
|
||||||
@templ generate
|
@templ generate
|
||||||
@sqlc 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:
|
setup:
|
||||||
@command -v templ >/dev/null 2>&1 || { \
|
@command -v templ >/dev/null 2>&1 || { \
|
||||||
@@ -18,4 +18,5 @@ setup:
|
|||||||
}
|
}
|
||||||
@curl -o cmd/web/assets/js/datastar.js https://cdn.jsdelivr.net/gh/starfederation/datastar@main/bundles/datastar.js
|
@curl -o cmd/web/assets/js/datastar.js https://cdn.jsdelivr.net/gh/starfederation/datastar@main/bundles/datastar.js
|
||||||
@curl -o cmd/web/assets/css/pico.min.css https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css
|
@curl -o cmd/web/assets/css/pico.min.css https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.min.css
|
||||||
|
@mkdir cmd/web/assets/css/fonts
|
||||||
@curl -o cmd/web/assets/css/fonts/jersey15.woff2 https://fonts.gstatic.com/s/jersey15/v3/_6_9EDzuROGsUuk2TWjiZYAg.woff2
|
@curl -o cmd/web/assets/css/fonts/jersey15.woff2 https://fonts.gstatic.com/s/jersey15/v3/_6_9EDzuROGsUuk2TWjiZYAg.woff2
|
||||||
|
|||||||
Reference in New Issue
Block a user