Skip to content

Commit 2c3c1fa

Browse files
committed
Adding GCP deploy command.
1 parent 307df64 commit 2c3c1fa

File tree

2 files changed

+46
-1
lines changed

2 files changed

+46
-1
lines changed
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Upload assets to GCS
2+
on:
3+
push:
4+
tags:
5+
- 'release-*'
6+
jobs:
7+
build-n-upload:
8+
runs-on: ubuntu-latest
9+
10+
# Add "id-token" with the intended permissions.
11+
permissions:
12+
contents: 'read'
13+
id-token: 'write'
14+
15+
steps:
16+
- name: Checkout Repository
17+
uses: actions/checkout@master
18+
- name: Setup Node.js
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: '18.19.0'
22+
- name: Cache Node.js Modules
23+
uses: actions/cache@v2
24+
with:
25+
path: ~/.npm
26+
key: npm-${{ hashFiles('package-lock.json') }}
27+
restore-keys: npm-
28+
29+
- name: Install dependencies
30+
run: npm install
31+
32+
- name: Build Astro
33+
run: npm run build
34+
35+
- name: Read GCP Credentials
36+
id: 'auth'
37+
uses: 'google-github-actions/auth@v2'
38+
with:
39+
credentials_json: '${{ secrets.GCP_CREDENTIALS }}'
40+
41+
- name: 'Set up GCP SDK'
42+
uses: 'google-github-actions/setup-gcloud@v2'
43+
44+
- name: 'Upload Using gcloud CLI (rsync)'
45+
run: 'gsutil -m rsync -R -d dist gs://beeceptor-static-websites-hosting/india-dev-stack-com/'

src/content/blogs/developer-marketing.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: How to Do Developer Marketing
33
description: How to Developer Marketing
44
pubDate: "2024-09-18T00:00:00+05:30"
55
heroImage: "/opengraph.png"
6-
author: "Anish"
6+
author: "Ankit"
77
---
88

99
# How to Develop a Marketing Strategy

0 commit comments

Comments
 (0)