Skip to content

Commit 0dd36e5

Browse files
authored
Rm/generate doc on release (#157)
1 parent f179129 commit 0dd36e5

File tree

3 files changed

+71
-20
lines changed

3 files changed

+71
-20
lines changed

.github/workflows/lint.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: lint
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
workflow_dispatch:
7+
permissions:
8+
contents: read
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: reviewdog/action-misspell@v1
15+
with:
16+
github_token: ${{ secrets.github_token }}
17+
locale: "US"
18+
- uses: github/super-linter@v5
19+
env:
20+
DEFAULT_BRANCH: main
21+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
USE_FIND_ALGORITHM: true
23+
VALIDATE_ALL_CODEBASE: true
24+
VALIDATE_JSCPD: false
25+
MARKDOWN_CONFIG_FILE: .markdownlint.yml
26+
YAML_CONFIG_FILE: .yamllint.yml
27+
VALIDATE_GITLEAKS: false
28+
LOG_LEVEL: WARN
29+
VALIDATE_SHELL_SHFMT: false

.github/workflows/release.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
name: Create Release
11+
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-go@5
18+
- run: make build
19+
- name: Create Release
20+
id: create_release
21+
uses: actions/create-release@v1
22+
env:
23+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
with:
25+
tag_name: ${{ github.ref }}
26+
release_name: Release ${{ github.ref }}
27+
draft: false
28+
prerelease: ${{ contains(github.ref, '-') }} # Set to true if it's a pre-release tag
29+
body: |
30+
## Changes in this release:
31+
32+
* Add your release notes here.
33+
34+
- name: Upload Release Assets
35+
uses: actions/upload-release-asset@v1
36+
env:
37+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38+
with:
39+
upload_url: ${{ steps.create_release.outputs.upload_url }}
40+
asset_path: ./bin/
41+
asset_name: go-dsa.md
42+
asset_content_type: text/markdown; charset=UTF-8

.github/workflows/tests.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -7,26 +7,6 @@ on:
77
permissions:
88
contents: read
99
jobs:
10-
lint:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v4
14-
- uses: reviewdog/action-misspell@v1
15-
with:
16-
github_token: ${{ secrets.github_token }}
17-
locale: "US"
18-
- uses: github/super-linter@v5
19-
env:
20-
DEFAULT_BRANCH: main
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22-
USE_FIND_ALGORITHM: true
23-
VALIDATE_ALL_CODEBASE: true
24-
VALIDATE_JSCPD: false
25-
MARKDOWN_CONFIG_FILE: .markdownlint.yml
26-
YAML_CONFIG_FILE: .yamllint.yml
27-
VALIDATE_GITLEAKS: false
28-
LOG_LEVEL: WARN
29-
VALIDATE_SHELL_SHFMT: false
3010
tests:
3111
runs-on: ubuntu-latest
3212
steps:

0 commit comments

Comments
 (0)