-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.34 KB
/
deploy_sis_app.yaml
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
38
39
40
41
42
43
44
45
46
name: Deploy SIS CLI Execution
on:
push:
branches:
- "*"
tags:
- "v*"
workflow_dispatch:
env:
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }} # Add these secerts to github repository
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }} # Add these secerts to github repository
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }} # Add these secerts to github repository
SNOWFLAKE_DATABASE: 'PLAYGROUND' # Add these secerts to github repository
SNOWFLAKE_SCHEMA: 'DEV' # Add these secerts to github repository
SNOWFLAKE_WAREHOUSE: 'DEMO_WH' # Add these secerts to github repository
SNOWFLAKE_ROLE: 'ACCOUNTADMIN' # Add these secerts to github repository
jobs:
snowflake-cli:
name: Snowflake CLI
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install Snowflake CLI
uses: Snowflake-Labs/snowflake-cli-action@v1
with:
cli-version: "latest"
default-config-file-path: "./config.toml"
- name: Test Snowflake CLI
id: TestSnowClI
run: |
snow --version
snow connection set-default "default"
snow connection test
- name: Deploy SIS App
id: deploy
run: |
snow streamlit deploy --replace