File tree Expand file tree Collapse file tree 3 files changed +71
-20
lines changed Expand file tree Collapse file tree 3 files changed +71
-20
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 77permissions :
88 contents : read
99jobs :
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 :
You can’t perform that action at this time.
0 commit comments