statusLabel fix #24
This file contains hidden or 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
| name: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: '4.4' | |
| - name: Install system dependencies for R packages | |
| run: sudo apt-get install -y libarchive-dev libcurl4-openssl-dev libssl-dev libxml2-dev | |
| - name: Cache R packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ env.R_LIBS_USER }} | |
| key: r-pkgs-shinylive-${{ hashFiles('shiny_apps/gwat_portfolio/app.R') }} | |
| restore-keys: r-pkgs-shinylive- | |
| - name: Install R packages | |
| run: | | |
| Rscript -e "install.packages(c('shinylive', 'shiny', 'plotly', 'dplyr', 'stringr'), | |
| repos = 'https://cloud.r-project.org', Ncpus = 2)" | |
| - name: Export Shiny app with shinylive | |
| run: | | |
| mkdir -p ai_studio/public/shiny/gwat_rnaseq | |
| Rscript -e "shinylive::export('shiny_apps/gwat_portfolio', 'ai_studio/public/shiny/gwat_rnaseq')" | |
| echo "=== shinylive output ===" | |
| ls -lh ai_studio/public/shiny/gwat_rnaseq/ | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20' | |
| - name: Install dependencies | |
| working-directory: ai_studio | |
| run: npm install | |
| - name: Stage public assets | |
| run: | | |
| mkdir -p ai_studio/public/assets/images | |
| cp assets/images/headshot.jpg ai_studio/public/assets/images/headshot.jpg | |
| cp Dearborn_CV_March_2026.pdf ai_studio/public/Dearborn_CV_March_2026.pdf | |
| - name: Stage LNP analysis assets | |
| run: | | |
| mkdir -p ai_studio/public/assets/images/lnp | |
| cp assets/images/lnp/*.png ai_studio/public/assets/images/lnp/ | |
| mkdir -p ai_studio/public/notebooks | |
| cp assets/notebooks/lnp_10x.html ai_studio/public/notebooks/lnp_10x.html | |
| - name: Stage TM01 analysis assets | |
| run: | | |
| mkdir -p ai_studio/public/assets/images/tm01 | |
| cp assets/images/tm01/*.png ai_studio/public/assets/images/tm01/ | |
| cp assets/notebooks/tm01.html ai_studio/public/notebooks/tm01.html | |
| - name: Build | |
| working-directory: ai_studio | |
| run: npm run build | |
| - name: Deploy to gh-pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ai_studio/dist |