Skip to content

Commit fdf048e

Browse files
authored
Merge pull request #229 from ThatConference/tickle-bot/fix/deploy
fix: deployment: gcp deploy now running npm run build
2 parents 88b2761 + f4066e3 commit fdf048e

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

.github/workflows/tickle-bot_PullRequest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
jobs:
99
build:
10-
runs-on: ubuntu-latest
10+
runs-on: ubuntu-22.04
1111

1212
steps:
1313
- name: Checkout PR

.github/workflows/tickle-bot_PushMaster.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build:
1212
name: Build
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout
1616
uses: actions/checkout@v3
@@ -31,6 +31,7 @@ jobs:
3131
run: |
3232
cd functions/tickle-bot
3333
pwd
34+
npm pkg delete scripts.build
3435
cp ./package.json __build__/
3536
cp ./package-lock.json __build__/
3637
git rev-list --count master > __build__/ccnt.txt
@@ -53,18 +54,21 @@ jobs:
5354
deploy-image:
5455
name: Deploy Ticklebot
5556
needs: build
56-
runs-on: ubuntu-latest
57+
runs-on: ubuntu-22.04
5758
steps:
5859
- name: Download Build Artifact
5960
uses: actions/download-artifact@v3
6061
with:
6162
name: tc-api
6263
path: tc-api
64+
- name: Setup google auth for github actions
65+
uses: google-github-actions/auth@v1
66+
with:
67+
credentials_json: ${{ secrets.GCLOUD_AUTH }}
6368
- name: Setup gcloud Actions
64-
uses: google-github-actions/setup-gcloud@v0
69+
uses: google-github-actions/setup-gcloud@v1
6570
with:
66-
version: '397.0.0'
67-
service_account_key: ${{ secrets.GCLOUD_AUTH }}
71+
version: '428.0.0'
6872
project_id: ${{ secrets.GCP_PROJECT_ID }}
6973
- name: write .env file
7074
run: |

functions/tickle-bot/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tickle-bot",
3-
"version": "2.5.3",
3+
"version": "2.5.4",
44
"description": "Provides authenticated requests against our api",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)