summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/ISSUE_TEMPLATE/bug_report.md17
-rw-r--r--.github/workflows/prerelease.yml9
-rw-r--r--.github/workflows/release.yml31
3 files changed, 48 insertions, 9 deletions
diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md
index 6c1ca65..527ab69 100644
--- a/.github/ISSUE_TEMPLATE/bug_report.md
+++ b/.github/ISSUE_TEMPLATE/bug_report.md
@@ -6,12 +6,15 @@ about: Template to report bugs.
<!-- Please search existing issues to avoid creating duplicates. -->
<!-- Also please test using the latest build to make sure your issue has not already been fixed. -->
-Required information:
-
-- gotop version (`gotop -V`):
-- The output of `uname -a`:
-- Terminal emulator (e.g. iTerm or gnome terminal):
-- Any relevenat hardware info:
-- tmux version if using tmux:
+##### gotop version:
+`gotop -V`, or if built from source, `git rev-parse HEAD`
+##### OS/Arch:
+Linux: `uname -or`, OSX: `sw_vers`; Windows: `systeminfo | findstr /B /C:"OS Name" /C:"OS Version"`
+##### Terminal emulator:
+e.g. iTerm, kitty, xterm, PowerShell
+##### Any relevant hardware info:
+If the issue is clearly related to a specific piece of hardware, e.g., the network
+##### tmux version:
+`tmux -V`, if using tmux
Also please copy or attach `~/.local/state/gotop/errors.log` if it exists and contains logs:
diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml
index e060746..86cb1d6 100644
--- a/.github/workflows/prerelease.yml
+++ b/.github/workflows/prerelease.yml
@@ -1,4 +1,4 @@
-name: Build Go binaries
+name: Create pre-release
on:
push:
@@ -20,11 +20,16 @@ jobs:
env:
COMPRESS_FILES: true
+ - name: Get tag name
+ shell: bash
+ run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
+ id: tag_name
+
- name: Pre-release
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
- automatic_release_tag: "${{ GITHUB_REF }}"
+ automatic_release_tag: "${{ steps.tag_name.outputs.tag }}"
draft: true
title: "Release candidate"
files: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..6390f46
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,31 @@
+name: Post release triggers
+
+on:
+ release:
+ types: [published]
+
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Get tag name
+ shell: bash
+ run: echo "##[set-output name=tag;]$(echo ${GITHUB_REF##*/})"
+ id: tag_name
+
+ - name: Update Homebrew recipe
+ uses: peter-evans/repository-dispatch@v1
+ with:
+ token: ${{ secrets.REPO_ACCESS_TOKEN }}
+ repository: xxxserxxx/homebrew-gotop
+ event-type: my-release
+ client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'
+
+ - name: Update Arch AURs
+ uses: peter-evans/repository-dispatch@v1
+ with:
+ token: ${{ secrets.REPO_ACCESS_TOKEN }}
+ repository: xxxserxxx/gotop-linux
+ event-type: my-release
+ client-payload: '{"tag": "${{ steps.tag_name.outputs.tag }}"}'