All checks were successful
Build tplate / Build (push) Successful in 32s
page:
move `page.Load*` methods into handler to fix bug
merge `ParseExternalPost`, `SortPostByDate`, `ParseCategories` and `ParseTags` as single `ParsePosts` method
log:
replace some `"log"` to `"github.com/rs/zerolog/log"`
37 lines
906 B
YAML
37 lines
906 B
YAML
name: Build tplate
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
Build:
|
|
runs-on: act
|
|
steps:
|
|
- name: checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: show workspace
|
|
run: |
|
|
ls -la
|
|
go version
|
|
- name: build tplate-linux-amd64
|
|
run: env GOOS=linux GOARCH=amd64 go build -o tplate.bin
|
|
- name: upload tplate-linux-amd64
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tplate-linux-amd64.zip
|
|
path: tplate.bin
|
|
if-no-files-found: error
|
|
- name: build tplate-windows-amd64
|
|
run: env GOOS=windows GOARCH=amd64 go build -o tplate.exe
|
|
- name: upload tplate-windows-amd64
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: tplate-windows-amd64.zip
|
|
path: tplate.exe
|
|
if-no-files-found: error
|