Skip to content

Commit

Permalink
Merge pull request #1 from blizard863/dev
Browse files Browse the repository at this point in the history
feat: release mini version
  • Loading branch information
blizard863 authored Apr 12, 2024
2 parents 5b8b00b + d39306c commit 27f1c45
Show file tree
Hide file tree
Showing 30 changed files with 2,804 additions and 218 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: goreleaser

on:
workflow_dispatch:
push:
# run only against tags
tags:
- "*"

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"

- name: Make All
run: |
./package.sh
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean --release-notes=./Release.md
env:
GITHUB_TOKEN: ${{ secrets.GPR_TOKEN }}
50 changes: 34 additions & 16 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,21 +1,39 @@
# If you prefer the allow list template instead of the deny list, see community template:
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
#
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
# Compiled Object files, Static and Dynamic libs (Shared Objects)
*.o
*.a
*.so
*.dylib

# Test binary, built with `go test -c`
*.test
# Folders
_obj
_test

# Architecture specific extensions/prefixes
*.[568vq]
[568vq].out

*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*

# Output of the go coverage tool, specifically when used with LiteIDE
*.out
_testmain.go

*.exe
*.test
*.prof

# Dependency directories (remove the comment below to include it)
# vendor/
# Self
bin/
packages/
release/
test/bin/
vendor/
lastversion/
dist/
.idea/
.vscode/
.autogen_ssh_key

# Go workspace file
go.work
# Cache
*.swp
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
builds:
- skip: true
checksum:
name_template: "{{ .ProjectName }}_sha256_checksums.txt"
algorithm: sha256
extra_files:
- glob: ./release/packages/*
release:
# Same as for github
# Note: it can only be one: either github, gitlab or gitea
github:
owner: gofrp
name: tiny-frpc

draft: false

# You can add extra pre-existing files to the release.
# The filename on the release will be the last part of the path (base). If
# another file with the same name exists, the latest one found will be used.
# Defaults to empty.
extra_files:
- glob: ./release/packages/*
Loading

0 comments on commit 27f1c45

Please sign in to comment.