-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- 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.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |