Skip to content

Commit

Permalink
Deploy 097c7d9 to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Deploy from CI committed Aug 12, 2023
0 parents commit 0a5e81f
Show file tree
Hide file tree
Showing 55 changed files with 7,753 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .dockerignore
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
38 changes: 38 additions & 0 deletions .env.example
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 added .github/.gitkeep
Empty file.
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
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 }}
39 changes: 39 additions & 0 deletions .github/workflows/mdbook.yml
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
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
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 }}
31 changes: 31 additions & 0 deletions .gitignore
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
31 changes: 31 additions & 0 deletions .vscode/settings.json
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"
}
}
4 changes: 4 additions & 0 deletions FontAwesome/css/font-awesome.css

Large diffs are not rendered by default.

Binary file added FontAwesome/fonts/FontAwesome.ttf
Binary file not shown.
Binary file added FontAwesome/fonts/fontawesome-webfont.eot
Binary file not shown.
Loading

0 comments on commit 0a5e81f

Please sign in to comment.