-
Notifications
You must be signed in to change notification settings - Fork 7
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
Deploy from CI
committed
Aug 12, 2023
0 parents
commit 0a5e81f
Showing
55 changed files
with
7,753 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#dotfiles | ||
.git | ||
.gitignore | ||
.vscode | ||
.github | ||
.env | ||
.env.example | ||
.dockerignore | ||
|
||
#traget | ||
target | ||
|
||
#sandbox | ||
sandbox | ||
docs | ||
|
||
# others | ||
*.md | ||
Dockerfile | ||
docker-compose.yml |
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,38 @@ | ||
# the server port | ||
PORT = 23504 | ||
|
||
# database | ||
DATABASE_URL=postgres://opeolluwa:thunderstorm@localhost/raccoon | ||
|
||
#jwt secret and OTP encryption | ||
JWT_SECRET=zlsAAnVChDQJEZDW9pAq7ks98gjolpfASBHAi8BJ3Y9TeUDHcX9HovV5BzrS4hUKX5tBmB4acfQ | ||
TOTP_ENCRYPTION_KEY = ptDVUcaEswtawGxdAYrHMzjNZzwVqzJpZFDIaNnDtLMMkbnTVpxtbTRcpMaPmvvvXwwbPFpGMVQuiUaKRtbx | ||
|
||
#smtp username | ||
SMTP_USERNAME= | ||
#smtp password | ||
SMTP_PASSWORD= | ||
#smtp host | ||
SMTP_HOST= | ||
#smtp port | ||
SMTP_PORT= | ||
#smtp the email address that the response can be sent to | ||
SMTP_REPLY_TO_ADDRESS= | ||
#the name of the email address that the response can be sent to | ||
SMTP_REPLY_TO_NAME= | ||
|
||
|
||
#message broker | ||
EMAIL_QUEUE = email_queue | ||
|
||
|
||
# 0Auth2 configuration | ||
#the client id of the 0Auth2 application using google | ||
GOOGLE_CLIENT_ID= | ||
GOOGLE_CLIENT_SECRET= | ||
|
||
|
||
#DISCORD | ||
DISCORD_CLIENT_ID= | ||
DISCORD_CLIENT_SECRET= | ||
REDIRECT_URL= |
Empty file.
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,45 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- v[0-9]+.* | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: taiki-e/create-gh-release-action@v1 | ||
#with: | ||
# (optional) | ||
#changelog: CHANGELOG.md | ||
env: | ||
# (required) | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
upload-assets: | ||
strategy: | ||
matrix: | ||
os: | ||
- ubuntu-latest | ||
- macos-latest | ||
- windows-latest | ||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: taiki-e/upload-rust-binary-action@v1 | ||
with: | ||
# (required) | ||
bin: playlist-manager | ||
# (optional) On which platform to distribute the `.tar.gz` file. | ||
# [default value: unix] | ||
# [possible values: all, unix, windows, none] | ||
tar: unix | ||
# (optional) On which platform to distribute the `.zip` file. | ||
# [default value: windows] | ||
# [possible values: all, unix, windows, none] | ||
zip: windows | ||
env: | ||
# (required) | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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,39 @@ | ||
name: Build | ||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # To push a branch | ||
pull-requests: write # To create a PR from that branch | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Install mdbook | ||
run: | | ||
mkdir mdbook | ||
curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.28/mdbook-v0.4.28-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=./mdbook | ||
echo `pwd`/mdbook >> $GITHUB_PATH | ||
- name: Deploy GitHub Pages | ||
run: | | ||
# This assumes your book is in the root of your repository. | ||
# Just add a `cd` here if you need to change to another directory. | ||
cd docs | ||
mdbook build | ||
git worktree add gh-pages | ||
git config user.name "Deploy from CI" | ||
git config user.email "" | ||
cd gh-pages | ||
# Delete the ref to avoid keeping history. | ||
git update-ref -d refs/heads/gh-pages | ||
rm -rf * | ||
mv ../book/* . | ||
git add . | ||
git commit -m "Deploy $GITHUB_SHA to gh-pages" | ||
git push --force --set-upstream origin gh-pages |
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,29 @@ | ||
name: build-artifact | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: release ${{ matrix.target }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- target: x86_64-pc-windows-gnu | ||
archive: zip | ||
- target: x86_64-unknown-linux-musl | ||
archive: tar.gz tar.xz tar.zst | ||
- target: x86_64-apple-darwin | ||
archive: zip | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Compile and release | ||
uses: rust-build/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
RUSTTARGET: ${{ matrix.target }} | ||
ARCHIVE_TYPES: ${{ matrix.archive }} |
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,31 @@ | ||
# Generated by Cargo | ||
# will have compiled files and executables | ||
/target/ | ||
|
||
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries | ||
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html | ||
Cargo.lock | ||
|
||
# These are backup files generated by rustfmt | ||
**/*.rs.bk | ||
|
||
|
||
# Added by cargo | ||
|
||
/target | ||
|
||
#add env to git ignore | ||
.env | ||
|
||
nitride.conf | ||
|
||
#ignore binary files in the sandbox | ||
sandbox/* | ||
!sandbox/*.rs | ||
sandbox/calendar.html | ||
|
||
|
||
docs/book | ||
sandbox | ||
|
||
book |
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,31 @@ | ||
{ | ||
"cSpell.words": [ | ||
"ASBH", | ||
"bson", | ||
"chrono", | ||
"Datelike", | ||
"dotenv", | ||
"DQJEZDW", | ||
"gjolpf", | ||
"Iden", | ||
"jsonwebtoken", | ||
"lettre", | ||
"middlename", | ||
"oneshot", | ||
"ormlite", | ||
"pkce", | ||
"pswd", | ||
"reqwest", | ||
"singlepart", | ||
"smaple", | ||
"sqlx", | ||
"tbody", | ||
"tinytemplate", | ||
"TOTP" | ||
], | ||
"workbench.colorCustomizations": { | ||
"activityBar.background": "#390584", | ||
"titleBar.activeBackground": "#5008B9", | ||
"titleBar.activeForeground": "#FCFAFF" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.