diff --git a/.github/workflows/deploy.staging.yml b/.github/workflows/deploy.staging.yml index fedf5bf..989ff2f 100644 --- a/.github/workflows/deploy.staging.yml +++ b/.github/workflows/deploy.staging.yml @@ -3,15 +3,21 @@ name: Fly Deploy Staging on: push: branches: - - main + - ORAKEI-Anton-Test-Deploy jobs: deploy-web: name: Deploy Web runs-on: ubuntu-latest + environment: Notion steps: - uses: actions/checkout@v3 - uses: superfly/flyctl-actions/setup-flyctl@master - run: flyctl deploy --remote-only --config fly.staging.toml env: FLY_API_TOKEN: ${{ secrets.FLY_STAGING_API_TOKEN }} + NOTION_PAGE_ID: ${{ secrets.NOTION_PAGE_ID }} + NOTION_TOKEN: ${{ secrets.NOTION_TOKEN }} + NOTION_MEMBERS_ID: ${{ secrets.NOTION_MEMBERS_ID }} + ANTON: ${{ secrets.ANTON }} + diff --git a/src/components/index page/IndexHero.tsx b/src/components/index page/IndexHero.tsx index 599e676..4ed7dd7 100644 --- a/src/components/index page/IndexHero.tsx +++ b/src/components/index page/IndexHero.tsx @@ -7,7 +7,7 @@ const IndexHero = () => {

Youth of Ōrākei

Empowering and engaging Ōrākei youth to promote their wellbeing

We’re the Youth of Ōrākei, a group of 26 young leaders (aged 12-24) from the - Ōrākei Local Board area who are determined to make a positive impact in our community.

+ asdsadsadŌrākei Local Board area who are determined to make a positive impact in our community.

); diff --git a/src/pages/index.astro b/src/pages/index.astro index afeb772..8b95b27 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -23,7 +23,7 @@ import React from "react"; - Youth of Ōrākei | Home + Anton is failing at this | Home diff --git a/src/scripts/getMembers.ts b/src/scripts/getMembers.ts index fb2b79b..b513099 100644 --- a/src/scripts/getMembers.ts +++ b/src/scripts/getMembers.ts @@ -13,13 +13,14 @@ type MemberData = { export async function getMembers(): Promise { - if (!import.meta.env.NOTION_TOKEN || !import.meta.env.NOTION_MEMBERS_ID) + console.log(process.env.ANTON) + if (!process.env.NOTION_TOKEN || !process.env.NOTION_MEMBERS_ID) throw new Error("Missing secret(s)"); - const notion = new Client({ auth: import.meta.env.NOTION_TOKEN }); + const notion = new Client({ auth: process.env.NOTION_TOKEN }); const query = await notion.databases.query({ - database_id: import.meta.env.NOTION_MEMBERS_ID, + database_id: process.env.NOTION_MEMBERS_ID, sorts: [{ property: 'Name', direction: 'ascending'