Skip to content

publish

publish #3

Workflow file for this run

name: Build and Release Go Binary
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: '1.22.5'
- name: Build
run: go build -o templ-css-sort
- name: Archive binary
run: tar -czvf templ-css-sort.tar.gz templ-css-sort
- name: Upload Release Asset
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./templ-css-sort.tar.gz
asset_name: templ-css-sort.tar.gz
asset_content_type: application/gzip