Skip to content

Commit abfbea2

Browse files
committed
Initial commit
0 parents  commit abfbea2

File tree

7 files changed

+180
-0
lines changed

7 files changed

+180
-0
lines changed

.github/workflows/CHANGELOG.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# .github/workflows/update-changelog.yaml
2+
name: "Update Changelog"
3+
4+
# on:
5+
# release:
6+
# types: [released]
7+
on: workflow_dispatch
8+
9+
jobs:
10+
update:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
16+
with:
17+
ref: ${{ github.event.release.target_commitish }}
18+
19+
- name: Update Changelog
20+
uses: stefanzweifel/changelog-updater-action@v1
21+
with:
22+
latest-version: ${{ github.event.release.tag_name }}
23+
release-notes: ${{ github.event.release.body }}
24+
25+
- name: Commit updated CHANGELOG
26+
uses: stefanzweifel/git-auto-commit-action@v4
27+
with:
28+
branch: ${{ github.event.release.target_commitish }}
29+
commit_message: Update CHANGELOG
30+
file_pattern: CHANGELOG.md

.github/workflows/maven.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Release Maven
2+
3+
4+
on: workflow_dispatch
5+
# on:
6+
# push:
7+
# tags:
8+
# - '*'
9+
#on: [push]
10+
11+
12+
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
21+
- name: Set up JDK 1.8
22+
uses: actions/setup-java@v1
23+
with:
24+
distribution: "Liberica"
25+
java-version: 1.8
26+
java-package: jdk+fx
27+
- name: Build with Maven
28+
run:
29+
mvn clean package -DskipTests=true -Dmaven.javadoc.skip=true -B -V
30+
- name: Create Release
31+
id: create_release
32+
uses: SummerSec/create-release@master
33+
with:
34+
tag_name: ${{ github.ref }}
35+
release-name: Release ${{ github.ref }}
36+
draft: false
37+
prerelease: false
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.RELEASE }}
40+
41+
42+
- name: Upload a Build Artifact
43+
id: upload-build-artifact
44+
uses: actions/[email protected]
45+
with:
46+
# Artifact name
47+
# 修改打包后的文件名称
48+
name: # optional, default is artifact
49+
SPATool-${{steps.create_release.outputs.tag}}-SNAPSHOT-all.jar
50+
# A file, directory or wildcard pattern that describes what to upload
51+
path:
52+
target/*-SNAPSHOT-all.jar
53+
# The desired behavior if no files are found using the provided path.
54+
55+
- name: Auto Upload Release
56+
id: upload-release-asset
57+
uses: actions/[email protected]
58+
env:
59+
GITHUB_TOKEN: ${{secrets.RELEASE}}
60+
with:
61+
# 修改打包后的文件名称
62+
upload_url: ${{ steps.create_release.outputs.upload_url }}
63+
asset_path: target/SPATool-${{ steps.create_release.outputs.tag }}-SNAPSHOT-all.jar
64+
asset_name: SPATool-${{ steps.create_release.outputs.tag }}-SNAPSHOT-all.jar
65+
asset_content_type: application/java-archive
66+
67+

.github/workflows/replace.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Replace
2+
on: workflow_dispatch
3+
jobs:
4+
build:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v2
8+
- name: Find and Replace
9+
uses: SummerSec/gha-find-replace@master
10+
with:
11+
find: "SummerSec/template"
12+
replace: ${{ github.repository }}
13+
regex: false
14+
include: "README.md" # 需要替换的文件内容
15+
- name: Push changes
16+
uses: SummerSec/push@master # 更新README.md
17+
with:
18+
github_token: ${{ secrets.RELEASE }} # github token

.gitignore

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

CHANGELOG.md

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

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 夏天
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
2+
<h1 align="center" >{title}</h1>
3+
<h3 align="center" >个人使用模板仓库{描述}</h3>
4+
<p align="center">
5+
<a href="https://github.com/SummerSec/template"></a>
6+
<a href="https://github.com/SummerSec/template"><img alt="template" src="https://img.shields.io/badge/template-green"></a>
7+
<a href="https://github.com/SummerSec/template"><img alt="Forks" src="https://img.shields.io/github/forks/SummerSec/template"></a>
8+
<a href="https://github.com/SummerSec/template"><img alt="Release" src="https://img.shields.io/github/release/SummerSec/template.svg"></a>
9+
<a href="https://github.com/SummerSec/template"><img alt="Stars" src="https://img.shields.io/github/stars/SummerSec/template.svg?style=social&label=Stars"></a>
10+
<a href="https://github.com/SummerSec"><img alt="Follower" src="https://img.shields.io/github/followers/SummerSec.svg?style=social&label=Follow"></a>
11+
<a href="https://github.com/SummerSec"><img alt="Visitor" src="https://visitor-badge.laobi.icu/badge?page_id=SummerSec.template"></a>
12+
<a href="https://twitter.com/SecSummers"><img alt="SecSummers" src="https://img.shields.io/twitter/follow/SecSummers.svg"></a>
13+
<a xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://visitor-badge.laobi.icu"><rect fill="rgba(0,0,0,0)" height="20" width="49.6"/></a>
14+
<a xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="https://visitor-badge.laobi.icu"><rect fill="rgba(0,0,0,0)" height="20" width="17.0" x="49.6"/></a>
15+
</p>
16+
17+
18+
19+
## 📝 TODO
20+
21+
---
22+
## 🐉 来龙去脉
23+
24+
---
25+
## ⚡下载安装
26+
---
27+
## 🎬 使用方法
28+
29+
30+
## 🅱️ 免责声明
31+
32+
该工具仅用于安全自查检测
33+
34+
由于传播、利用此工具所提供的信息而造成的任何直接或者间接的后果及损失,均由使用者本人负责,作者不为此承担任何责任。
35+
36+
本人拥有对此工具的修改和解释权。未经网络安全部门及相关部门允许,不得善自使用本工具进行任何攻击活动,不得以任何方式将其用于商业目的。
37+
38+
该工具只授权于企业内部进行问题排查,请勿用于非法用途,请遵守网络安全法,否则后果作者概不负责
39+
40+
----
41+
42+
![as](https://starchart.cc/SummerSec/template.svg)

0 commit comments

Comments
 (0)