-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 873 Bytes
/
Copy pathdeploy.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@df4cb1c069e1874edd31b4311f1884172cec0e10
with:
ref: main
persist-credentials: false
- name: Setup Node.js LTS
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e
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 }}