Skip to content

Commit

Permalink
Create deploy-app.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede authored Aug 15, 2024
0 parents commit 077aa5b
Showing 1 changed file with 65 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/deploy-app.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
---
name: Deploy app

on:
push:
branches:
- "main"
workflow_dispatch:

permissions:
actions: write
checks: write
contents: write
deployments: write
id-token: write
issues: read
discussions: read
packages: write
pages: write
pull-requests: read
repository-projects: read
security-events: read
statuses: read

jobs:
build:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
R_KEEP_PKG_SOURCE: yes

steps:
- uses: actions/checkout@v4

- uses: rstudio/shiny-workflows/setup-r-package@v1
with:
packages: |
renv
shinylive
sessioninfo
- name: Install package
run: |
install.packages("tima", repos = c("https://taxonomicallyinformedannotation.r-universe.dev", "https://bioc.r-universe.dev", "https://cloud.r-project.org"))
tima::install()
shell: Rscript {0}

- name: Build site
shell: Rscript {0}
run: |
shinylive::export(system.file(package = "tima"), "site")
- name: Upload site artifact
if: github.ref == 'refs/heads/main'
uses: actions/upload-pages-artifact@v3
with:
path: "site"

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: site

0 comments on commit 077aa5b

Please sign in to comment.