Skip to content

Commit

Permalink
feat: yaml file for github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ashwath Krishnan authored and Ashwath Krishnan committed Jan 27, 2025
1 parent f980ec7 commit 68c3505
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Deploy Shiny App to Posit Connect

on:
push:
branches:
- main # Trigger on pushes to the main branch

jobs:
deploy:
runs-on: ubuntu-latest

steps:
# Step 1: Check out the repository
- name: Check out repository
uses: actions/checkout@v3

# Step 2: Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9' # Adjust to your app's Python version

# Step 3: Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install rsconnect-python
# Step 4: Authenticate with Posit Connect
- name: Add Posit Connect Account
run: |
rsconnect add \
--account ashwathkris \
--name ashwathkris \
--token ${{ secrets.POSIT_API_KEY }} \
--secret ${{ secrets.POSIT_API_SECRET }}
# Step 5: Deploy to Posit Connect
- name: Deploy Application
run: |
rsconnect deploy shiny Dashboard \
--name ashwathkris \
--title pcha-test

0 comments on commit 68c3505

Please sign in to comment.