diff --git a/.github/workflows/enforcer.yaml b/.github/workflows/enforcer.yaml new file mode 100644 index 0000000..fbee4f9 --- /dev/null +++ b/.github/workflows/enforcer.yaml @@ -0,0 +1,15 @@ +name: 'Check Branch' + +on: + pull_request: + merge_group: + +jobs: + check_branch: + runs-on: ubuntu-latest + steps: + - name: Check branch + if: github.base_ref == 'main' && github.head_ref != 'dev' + run: | + echo "ERROR: You can only merge to main from dev." + exit 1 diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index e5befc0..e6d40ce 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -86,16 +86,16 @@ jobs: defaults: run: shell: bash + needs: [docker_build_push] if: github.ref_name == 'main' || github.ref_name == 'dev' env: GITHUB_USERNAME: ${{ github.actor }} GITHUB_PASSWORD: ${{ secrets.GITHUB_TOKEN }} PORT: ${{ vars.PORT }} - REACT_APP_CUSTOMER_PORTAL_LINK: ${{ vars.REACT_APP_CUSTOMER_PORTAL_LINK }} + REACT_APP_CUSTOMER_PORTAL_LINK: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_CUSTOMER_PORTAL_LINK || vars.STAGING_REACT_APP_CUSTOMER_PORTAL_LINK }} GOOGLE_CLIENT_ID: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_ID || secrets.STAGING_GOOGLE_CLIENT_ID }} GOOGLE_CLIENT_SECRET: ${{ github.ref_name == 'main' && secrets.PROD_GOOGLE_CLIENT_SECRET || secrets.STAGING_GOOGLE_CLIENT_SECRET }} ADMIN_EMAILS: ${{ vars.ADMIN_EMAILS }} - WASP_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_WASP_SERVER_URL || vars.STAGING_WASP_SERVER_URL }} ADS_SERVER_URL: ${{ github.ref_name == 'main' && vars.PROD_ADS_SERVER_URL || vars.STAGING_ADS_SERVER_URL }} BACKEND_DOMAIN: ${{ github.ref_name == 'main' && vars.PROD_BACKEND_DOMAIN || vars.STAGING_BACKEND_DOMAIN }} @@ -133,11 +133,12 @@ jobs: runs-on: ubuntu-22.04 permissions: contents: write + needs: [docker_build_push] if: github.ref_name == 'main' || github.ref_name == 'dev' env: STAGING_BACKEND_DOMAIN: ${{ vars.STAGING_BACKEND_DOMAIN }} STAGING_SSH_KEY: ${{ secrets.STAGING_SSH_KEY }} - REACT_APP_CUSTOMER_PORTAL_LINK: ${{ vars.REACT_APP_CUSTOMER_PORTAL_LINK }} + REACT_APP_CUSTOMER_PORTAL_LINK: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_CUSTOMER_PORTAL_LINK || vars.STAGING_REACT_APP_CUSTOMER_PORTAL_LINK }} REACT_APP_API_URL: ${{ github.ref_name == 'main' && vars.PROD_REACT_APP_API_URL || vars.STAGING_REACT_APP_API_URL }} steps: - name: Checkout repository diff --git a/README.md b/README.md index 8b7634e..845cff1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -# fastagency.ai +# FastAgency Hey 🧙♂️! This is a sneak peek at my product's evolving homepage. Get ready for an amazing launch soon! \ No newline at end of file diff --git a/app/src/client/components/AppNavBar.tsx b/app/src/client/components/AppNavBar.tsx index 7c1dd4e..b2b174b 100644 --- a/app/src/client/components/AppNavBar.tsx +++ b/app/src/client/components/AppNavBar.tsx @@ -9,6 +9,7 @@ import logo from '../static/logo.svg'; import DropdownUser from './DropdownUser'; import { DOCS_URL, BLOG_URL } from '../../shared/constants'; import DarkModeSwitcher from '../admin/components/DarkModeSwitcher'; +import UserActionButton from '../components/UserActionButton'; import { UserMenuItems } from '../components/UserMenuItems'; import { navigation } from '../landing-page/contentSections'; @@ -55,7 +56,7 @@ export default function AppNavBar() { {/*