Skip to content

Commit

Permalink
add: add github actions scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed May 26, 2021
1 parent e4bf398 commit 373d9a2
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: inhere

---

**System (please complete the following information):**

- OS: `linux` [e.g. linux, macOS]
- GO Version: `1.13` [e.g. `1.13`]
- Pkg Version: `1.1.1` [e.g. `1.1.1`]

**Describe the bug**

A clear and concise description of what the bug is.

**To Reproduce**

```go
// go code
```

**Expected behavior**

A clear and concise description of what you expected to happen.

**Screenshots**

If applicable, add screenshots to help explain your problem.

**Additional context**

Add any other context about the problem here.
13 changes: 13 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
version: 2
updates:
- package-ecosystem: gomod
directory: "/"
schedule:
interval: daily
open-pull-requests-limit: 10

- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Tag-release

on:
push:
tags:
- v*

jobs:
release:
name: Release new version
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: true
matrix:
go: [1.15]

steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Setup ENV
# https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable
run: |
echo "RELEASE_TAG=${GITHUB_REF:10}" >> $GITHUB_ENV
echo "RELEASE_NAME=$GITHUB_WORKFLOW" >> $GITHUB_ENV
- name: Display Env
run: env

# https://github.com/actions/create-release
- uses: meeDamian/github-release@v2.0.3
with:
gzip: false
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ env.RELEASE_TAG }}
name: ${{ env.RELEASE_TAG }}

0 comments on commit 373d9a2

Please sign in to comment.