Skip to content

Commit

Permalink
no cron, add deploy sections
Browse files Browse the repository at this point in the history
  • Loading branch information
pat-s committed Mar 24, 2020
1 parent f47eb56 commit 7d780c3
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
@@ -1,12 +1,8 @@
on:
push:
pull_request:
# for now, CRON jobs only run on the default branch of the repo (i.e. usually on master)
schedule:
# * is a special character in YAML so you have to quote this string
- cron: "0 4 * * *"

name: R CMD Check via {tic}
name: Deploy cheatsheets

jobs:
R-CMD-check:
Expand Down Expand Up @@ -62,3 +58,16 @@ jobs:

- name: "[Stage] After Success"
run: Rscript -e "tic::after_success()"

- name: "[Stage] Before Deploy"
if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release'
run: |
Rscript -e "tic::before_deploy()"
- name: "[Stage] Deploy"
if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release'
run: Rscript -e "tic::deploy()"

- name: "[Stage] After Deploy"
if: matrix.config.os == 'macOS-latest' && matrix.config.r == 'release'
run: Rscript -e "tic::after_deploy()"

0 comments on commit 7d780c3

Please sign in to comment.