-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 873 Bytes
/
deploy.yml
File metadata and controls
37 lines (30 loc) · 873 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: CD
on:
workflow_dispatch:
permissions:
contents: read
jobs:
deploy_prod:
name: Preparing Production release
if: ${{ github.repository == 'sws2apps/github-gcloud-cli' && github.ref == 'refs/heads/main' }}
environment:
name: Prod.env
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- name: Checkout for release preparation
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
with:
ref: main
persist-credentials: false
- name: Setup Node.js LTS
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
with:
node-version: lts/Jod
- name: Install dependencies
run: npm ci
- name: Run Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}