-
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.
Also removed manifest and requirement files since these will from now on live on the deploy branch
- Loading branch information
Showing
3 changed files
with
36 additions
and
130 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,36 @@ | ||
# Deploy branch is followed by Posit Connect | ||
name: Update Requirements and Manifest on Deploy Branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- main # Trigger when pushing to main | ||
|
||
jobs: | ||
ci: | ||
env: | ||
UV_SYSTEM_PYTHON: true | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout main | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup uv | ||
uses: astral-sh/setup-uv@v3 | ||
with: | ||
enable-cache: true | ||
|
||
- name: Generate requirements.txt with `uv` | ||
run: uv export --no-hashes -o requirements.txt | ||
|
||
- name: Generate rsconnect-python manifest.json | ||
run: uvx --from rsconnect-python rsconnect write-manifest shiny . --entrypoint shinylims.app:app | ||
|
||
- name: Commit changes and push to deploy branch | ||
run: | | ||
git config --global user.name "github-actions[bot]" | ||
git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
git add requirements.txt manifest.json | ||
git commit -m "Update requirements on new commit from main" || echo "No changes to commit" | ||
git push origin --force HEAD:deploy # Push to deploy branch, using force because of diverging branches |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.