Skip to content

Commit 8a46342

Browse files
committed
feat: add filtering, pipeline, and instructions
1 parent c421872 commit 8a46342

File tree

15 files changed

+786
-0
lines changed

15 files changed

+786
-0
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @jef

.github/FUNDING.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github: jef
2+
custom: ["https://www.paypal.me/jxf"]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
name: "\U0001F41B Bug report"
3+
about: Report a bug for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
## Expected Behavior
11+
12+
<!-- Tell us what should happen -->
13+
14+
## Current Behavior
15+
16+
<!-- Tell us what happens instead of the expected behavior -->
17+
18+
## Steps to Reproduce
19+
20+
<!-- Provide a link to a live example, or an unambiguous set of steps to reproduce this bug. -->
21+
<!-- Include code to reproduce, if relevant -->
22+
23+
## Environment
24+
25+
- OS:
26+
- Flags:
27+
28+
## Logs
29+
30+
<!-- Provide a brief log -->

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: 💡 Have an idea for a new feature?
4+
url: https://github.com/jef/stargazer-vanity/discussions
5+
about: Create a new idea discussion!
6+
- name: 🙇 Need help with stargazer-vanity?
7+
url: https://github.com/jef/stargazer-vanity/discussions
8+
about: Create a new help discussion if it hasn't been asked before!

.github/dependabot.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "daily"
7+
labels:
8+
- "dependencies"
9+
- package-ecosystem: "gomod"
10+
directory: "/"
11+
schedule:
12+
interval: "daily"
13+
labels:
14+
- "dependencies"

.github/pull_request_template.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!-- Please use Conventional Commits to label your title -->
2+
<!-- https://www.conventionalcommits.org/en/v1.0.0/ -->
3+
<!-- Example: feat: allow provided config object to extend other configs -->
4+
5+
### Description
6+
7+
<!-- Fixes #(issue) -->
8+
<!-- Please also include relevant motivation and context. -->
9+
10+
### Testing
11+
12+
<!-- Please describe the tests that you ran to verify your changes. -->
13+
<!-- Provide instructions so we can reproduce. -->
14+
<!-- Please also list any relevant details for your test configuration -->
15+
16+
### New dependencies
17+
18+
<!-- List any dependencies that are required for this change. -->
19+
<!-- Otherwise, delete section. -->

.github/workflows/cd.yaml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: cd
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
cd:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: google-github-actions/release-please-action@v2.13.0
12+
id: release
13+
with:
14+
token: ${{ secrets.GITHUB_TOKEN }}
15+
release-type: simple
16+
package-name: stargazer-vanity
17+
- name: Retrieve latest tag
18+
run: echo "TAG=$(cat version.txt)" >> $GITHUB_ENV
19+
- uses: actions/setup-go@v2
20+
with:
21+
go-version: '1.15'
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/go/pkg/mod
25+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
26+
restore-keys: ${{ runner.os }}-go-
27+
- name: Build release assets
28+
run: make dist
29+
- name: Upload Windows asset
30+
if: ${{ steps.release.outputs.release_created }}
31+
uses: actions/upload-release-asset@v1
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
upload_url: ${{ steps.release.outputs.upload_url }}
36+
asset_path: ./svg.exe
37+
asset_name: svg-windows-amd64.exe
38+
asset_content_type: application/octet-stream
39+
- name: Upload Linux asset
40+
if: ${{ steps.release.outputs.release_created }}
41+
uses: actions/upload-release-asset@v1
42+
env:
43+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44+
with:
45+
upload_url: ${{ steps.release.outputs.upload_url }}
46+
asset_path: ./svg.linux
47+
asset_name: svg-linux-amd64
48+
asset_content_type: application/octet-stream
49+
- name: Upload macOS asset
50+
if: ${{ steps.release.outputs.release_created }}
51+
uses: actions/upload-release-asset@v1
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
with:
55+
upload_url: ${{ steps.release.outputs.upload_url }}
56+
asset_path: ./svg.darwin
57+
asset_name: svg-darwin-amd64
58+
asset_content_type: application/octet-stream

.github/workflows/ci.yaml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: ci
2+
on:
3+
pull_request:
4+
branches:
5+
- main
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: actions/setup-go@v2
12+
with:
13+
go-version: '1.15'
14+
- uses: actions/cache@v2
15+
with:
16+
path: ~/go/pkg/mod
17+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
18+
restore-keys: ${{ runner.os }}-go-
19+
- name: Build
20+
run: make
21+
lint:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v2
25+
- uses: actions/setup-go@v2
26+
with:
27+
go-version: '1.15'
28+
- uses: actions/cache@v2
29+
with:
30+
path: ~/go/pkg/mod
31+
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
32+
restore-keys: |
33+
${{ runner.os }}-go-
34+
- name: Lint
35+
run: |
36+
go get -u golang.org/x/lint/golint
37+
golint -set_exit_status

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
.idea/
2+
13
# Binaries for programs and plugins
24
*.exe
5+
*.linux
6+
*.macos
37
*.exe~
48
*.dll
59
*.so

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
.DEFAULT_GOAL := build
2+
3+
.PHONY: build
4+
build:
5+
go build -o sgv
6+
7+
.PHONY: clean
8+
clean:
9+
rm -rf sgv
10+
11+
.PHONY: dist
12+
dist:
13+
GOOS=windows GOARCH=amd64 go build -o svg.exe
14+
GOOS=linux GOARCH=amd64 go build -o svg.linux
15+
GOOS=darwin GOARCH=amd64 go build -o svg.darwin

0 commit comments

Comments
 (0)