From af70bea55ce8745b52713f1cf3413ca23fb89a81 Mon Sep 17 00:00:00 2001 From: Piyush-linux Date: Sat, 13 Jul 2024 13:30:33 +0530 Subject: [PATCH] Github Actions --- .github/workflows/deply.yml | 24 ++++++++++++++++++++++++ cheat/docker.md | 9 +++++++++ retype.yml | 2 +- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/deply.yml create mode 100644 cheat/docker.md diff --git a/.github/workflows/deply.yml b/.github/workflows/deply.yml new file mode 100644 index 0000000..c3c8263 --- /dev/null +++ b/.github/workflows/deply.yml @@ -0,0 +1,24 @@ +name: Publish Retype powered website to GitHub Pages +on: + workflow_dispatch: + push: + branches: + - master + +jobs: + publish: + name: Publish to retype branch + + runs-on: ubuntu-latest + + permissions: + contents: write + + steps: + - uses: actions/checkout@v4 + + - uses: retypeapp/action-build@latest + + - uses: retypeapp/action-github-pages@latest + with: + update-branch: true \ No newline at end of file diff --git a/cheat/docker.md b/cheat/docker.md new file mode 100644 index 0000000..02f585f --- /dev/null +++ b/cheat/docker.md @@ -0,0 +1,9 @@ +## Docker Postgres Setup + +```sh +sudo docker pull postgres +sudo docker volume create postgres_data +sudo docker run --name postgres_container -e POSTGRES_PASSWORD=postgres -d -p 5432:5432 -v postgres_data:/var/lib/postgresql/data postgres +sudo docker container start postgres_container +# POSTGRES_URL = postgresql://postgres:mysecretpassword@localhost:5432/foodie +``` \ No newline at end of file diff --git a/retype.yml b/retype.yml index 980d954..b9b7daa 100644 --- a/retype.yml +++ b/retype.yml @@ -1,6 +1,6 @@ input: . output: .retype -url: piyush-linux.github.io +url: piyush-linux.github.io/readme branding: logo: static/logo.svg title: Readme