-
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.
* refactor register form to be simpler * refactor user_create flow * add hover effect to stat * Refactor .env, templates and config variables - Added APP_NAME variable in .env.ci and used it in app.py. - Removed redundant code and reorganized user_list.html templates. - Renamed 'user_list_view.html' to 'user_list_row.html' for consistency. - Updated TODO.md to reflect completed tasks. * setup sending emails via mailgun * increment project version, and release on pr to main * fix modal delete confirm * add comments to lazy loading of user list * upgrade email templates * enable preview envs in render via blueprint * set preview expiration to 1 day * add email config to .env.ci * fix webui test --------- Co-authored-by: phernandez <[email protected]>
- Loading branch information
1 parent
362ecae
commit 9a29fcb
Showing
38 changed files
with
1,333 additions
and
1,100 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,8 @@ | ||
[bumpversion] | ||
current_version = 0.1.0 | ||
commit = True | ||
tag = True | ||
|
||
[bumpversion:file:pyproject.toml] | ||
search = version = "{current_version}" | ||
replace = version = "{new_version}" |
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,3 +1,5 @@ | ||
APP_NAME=Basic Foundation | ||
|
||
POSTGRES_USER="postgres" | ||
POSTGRES_PASSWORD="password" | ||
POSTGRES_DB="api" | ||
|
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,63 @@ | ||
name: Release on Merge to Main | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Step 1: Checkout code | ||
- uses: actions/checkout@v4 | ||
|
||
# Step 2: Set up Python | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
|
||
# Step 3: Install dependencies (including bump2version) | ||
- name: Install Dependencies | ||
run: | | ||
pip install poetry | ||
poetry install | ||
pip install bump2version | ||
# Step 4: Bump the version (patch, minor, or major) | ||
- name: Bump Version | ||
run: | | ||
bump2version patch | ||
# Step 5: Build the project | ||
- name: Build Project | ||
run: | | ||
poetry build | ||
# Step 6: Push changes (committed by bump2version) | ||
- name: Push Version Bump Changes | ||
run: | | ||
git config user.name "github-actions[bot]" | ||
git config user.email "github-actions[bot]@users.noreply.github.com" | ||
git push origin main | ||
# Step 7: Create a GitHub Release | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: 'v${{ steps.bump_version.outputs.new_version }}' # New version from bump2version | ||
release_name: 'Release v${{ steps.bump_version.outputs.new_version }}' | ||
draft: false | ||
prerelease: false | ||
|
||
# # Step 8: Upload build artifacts to the release (optional) | ||
# - name: Upload Build Artifacts | ||
# uses: actions/upload-artifact@v4 | ||
# with: | ||
# name: basic-foundation-build | ||
# path: dist/ # Path to your build artifacts |
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
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
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
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
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
Oops, something went wrong.