-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d6b667e
commit 5c56cd4
Showing
21 changed files
with
83 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
YAO_DB_DRIVER="sqlite3" | ||
YAO_DB_PRIMARY="db/yao.db" | ||
YAO_ENV="development" | ||
YAO_HOST="0.0.0.0" | ||
YAO_LANG="zh-cn" | ||
YAO_LOG="logs/application.log" | ||
YAO_LOG_MODE="TEXT" | ||
YAO_PORT="5099" | ||
YAO_SESSION_FILE="db/.session" | ||
YAO_SESSION_STORE="file" | ||
YAO_STUDIO_PORT="5077" | ||
OPENAI_KEY="sk-123456" | ||
HTTPS_PROXY="socks5://0.0.0.0:10808" | ||
# email account | ||
EMAIL_USERNAME= | ||
# email password or access code | ||
EMAIL_PASSWORD= | ||
# send to | ||
EMAIL_TO= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Go Build and Publish Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
tags: | ||
description: "Version tags" | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: "1.21.6" | ||
|
||
- name: Build Go project | ||
run: | | ||
GOOS=linux CGO_ENABLED=0 GOARCH=amd64 go build -o email-linux-amd64.so | ||
GOOS=linux CGO_ENABLED=0 GOARCH=arm64 go build -o email-linux-arm64.so | ||
chmod +x email-*.so | ||
ls -lart | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: email-linux-plugin | ||
files: | | ||
*.so | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Get Release URL | ||
run: | | ||
echo "Release URL: ${{ steps.create_release.outputs.upload_url }}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
logs | ||
*.so | ||
.env | ||
plugins/email/data | ||
data | ||
data/emails | ||
yaoapp/plugins/email/data | ||
yaoapp/plugins/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
build: | ||
CGO_ENABLED=0 go build -o yaoapp/plugins/email.so | ||
|
||
windows: | ||
set CGO_ENABLED=0 | ||
go build -o yaoapp/plugins/email.dll | ||
|
||
.PHONY: clean | ||
clean: | ||
rm -f yaoapp/plugins/email.so |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
YAO_DB_DRIVER="sqlite3" | ||
YAO_DB_PRIMARY="db/yao.db" | ||
YAO_ENV="development" | ||
YAO_HOST="0.0.0.0" | ||
YAO_LANG="zh-cn" | ||
YAO_LOG="logs/application.log" | ||
YAO_LOG_MODE="TEXT" | ||
YAO_PORT="5099" | ||
YAO_SESSION_FILE="db/.session" | ||
YAO_SESSION_STORE="file" | ||
YAO_STUDIO_PORT="5077" | ||
OPENAI_KEY="sk-123456" | ||
HTTPS_PROXY="" | ||
# email account | ||
EMAIL_USERNAME= | ||
# email password or access code | ||
EMAIL_PASSWORD= | ||
# send to | ||
EMAIL_TO= |
File renamed without changes.
File renamed without changes
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# plugin |
File renamed without changes.