Skip to content

Commit 8876777

Browse files
committed
adding deployment
1 parent 9bd61d9 commit 8876777

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed

.github/workflows/develop.yaml

+25-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717
- name: Set up Node.js
1818
uses: actions/setup-node@v4
19-
with:
19+
with:
2020
node-version: 20
2121
- name: Lint & Build
2222
working-directory: ./app
@@ -25,4 +25,27 @@ jobs:
2525
uses: actions/upload-artifact@v4
2626
with:
2727
name: build-artifacts
28-
path: ./app/out
28+
path: ./app/out
29+
Deploy:
30+
runs-on: ubuntu-latest
31+
needs: Build
32+
environment: Development
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v4
36+
- name: Download artefacts
37+
uses: actions/download-artifact@v4
38+
with:
39+
name: build-artifacts
40+
- name: 'Authenticate'
41+
uses: 'google-github-actions/auth@v2'
42+
with:
43+
project_id: ${{ secrets.GCP_BUCKET }}
44+
workload_identity_provider: ${{ secrets.GCP_WIP }}
45+
- name: Cloud Storage Uploader
46+
uses: google-github-actions/upload-cloud-storage@v2
47+
with:
48+
path: 'build-artifacts'
49+
destination: ${{ secrets.GCP_BUCKET }}
50+
parent: false
51+

app/src/app/page.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function Home() {
55
<main className="flex min-h-screen flex-col items-center justify-between p-24">
66
<div className="z-10 w-full max-w-5xl items-center justify-between font-mono text-sm lg:flex">
77
<p className="fixed left-0 top-0 flex w-full justify-center border-b border-gray-300 bg-gradient-to-b from-zinc-200 pb-6 pt-8 backdrop-blur-2xl dark:border-neutral-800 dark:bg-zinc-800/30 dark:from-inherit lg:static lg:w-auto lg:rounded-xl lg:border lg:bg-gray-200 lg:p-4 lg:dark:bg-zinc-800/30">
8-
Get started by editing&nbsp;
8+
Second Iteration&nbsp;
99
<code className="font-mono font-bold">src/app/page.tsx</code>
1010
</p>
1111
<div className="fixed bottom-0 left-0 flex h-48 w-full items-end justify-center bg-gradient-to-t from-white via-white dark:from-black dark:via-black lg:static lg:size-auto lg:bg-none">

0 commit comments

Comments
 (0)