Skip to content

Commit a891edb

Browse files
committed
chore, feat: update version; github workflow
1 parent b729b0a commit a891edb

File tree

4 files changed

+80
-202
lines changed

4 files changed

+80
-202
lines changed

.github/workflows/release.yaml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: Release Binaries
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*" # Trigger on version tags, e.g., v1.0.0
7+
8+
# Add permissions block at the workflow level
9+
permissions:
10+
contents: write
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
include:
18+
# Linux builds
19+
- os: linux
20+
arch: amd64
21+
- os: linux
22+
arch: arm64
23+
# macOS builds
24+
- os: darwin
25+
arch: amd64
26+
- os: darwin
27+
arch: arm64
28+
steps:
29+
- name: Checkout code
30+
uses: actions/checkout@v3
31+
32+
- name: Set up Go
33+
uses: actions/setup-go@v4
34+
with:
35+
go-version: "1.24.0"
36+
37+
- name: Build binary
38+
env:
39+
GOOS: ${{ matrix.os }}
40+
GOARCH: ${{ matrix.arch }}
41+
run: |
42+
mkdir -p dist
43+
go build -o dist/autopdf-${{ matrix.os }}-${{ matrix.arch }} ./cmd/autopdf
44+
45+
- name: Upload artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: autopdf-${{ matrix.os }}-${{ matrix.arch }}
49+
path: dist/autopdf-${{ matrix.os }}-${{ matrix.arch }}*
50+
51+
release:
52+
needs: build
53+
runs-on: ubuntu-latest
54+
steps:
55+
- name: Download build artifacts
56+
uses: actions/download-artifact@v4
57+
with:
58+
path: dist/
59+
60+
- name: Create GitHub Release
61+
uses: ncipollo/release-action@v1
62+
with:
63+
tag: ${{ github.ref_name }}
64+
name: Release ${{ github.ref_name }}
65+
artifacts: dist/*
66+
generateReleaseNotes: true
67+
body: |
68+
## Autopdf ${{ github.ref_name }}
69+
70+
### Downloads
71+
- Linux: `autopdf-linux-amd64`, `autopdf-linux-arm64`
72+
- macOS: `autopdf-darwin-amd64`, `autopdf-darwin-arm64` (Apple Silicon)
73+
74+
### Installation
75+
Download the appropriate binary for your system and add it to your PATH.
76+
77+
For detailed installation instructions and usage guide, please visit our documentation.

LICENSE

Lines changed: 0 additions & 201 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Simple. Neat. Fast. Powerful.
66

77
Perfect for creating professional, customizable PDF documents as a service.
88

9+
Like, Share, Subscribe, and Hit the Bell Icon! (Please do mention the software usage in your projects, products, etc.)
10+
911
[![License](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](LICENSE)
1012

1113
## Install

internal/autopdf/cmd.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import (
1919
var Cmd = &bonzai.Cmd{
2020
Name: `autopdf`,
2121
Alias: `apdf`,
22-
Vers: `v0.1.0`,
22+
Vers: `v1.0.0`,
2323
Short: `generate pdfs from latex templates`,
2424
Long: `
2525
The autopdf tool helps generate pdfs from latex templates. It simplifies common latex

0 commit comments

Comments
 (0)