diff --git a/.github/workflows/shiny-deployment.yml b/.github/workflows/shiny-deployment.yaml similarity index 79% rename from .github/workflows/shiny-deployment.yml rename to .github/workflows/shiny-deployment.yaml index 5998367..58ee624 100644 --- a/.github/workflows/shiny-deployment.yml +++ b/.github/workflows/shiny-deployment.yaml @@ -1,21 +1,20 @@ -# Script that sends POST request to a server. Use this for any project that you want to have automatically deployed to our Stats4SD Shiny server -# This is setup to automatically publish the default branch to the **staging** environment, and any new releases to the **live** environment +# Script that sends POST request to a server. Use this for any project that you want to have automatically deployed to our Stats4SD Shiny server ##### -# How to customise this +# How to customise this # If you want to customise this for your own projects, make sure you set your own deployment key and url in your repo or organisation's secrets. ##### name: Auto Deployment # Controls when the action will run. Triggers the workflow on push or pull request -# events but only for the main branch +# events for "main" and any release branch on: push: - branches: [ main ] - release: - types: [ published ] + branches: + - "main" + - "release/**" # A workflow run is made up of one or more jobs that can run sequentially or in parallel jobs: @@ -32,6 +31,6 @@ jobs: uses: jasongitmail/fast-webhook@v1.1.4 with: # The webhook URL to send the request to. - url: ${{ secrets.SHINYSERVERURL }} + url: ${{ secrets.SHINYDEPLOYURL }} # The stringified JSON body to be sent, if any. json: '{"secret": "${{ secrets.SHINYDEPLOYSECRET }}", "repo": "${{ github.repository }}", "ref": "${{ github.ref }}"}' diff --git a/index.html b/index.html index dc7bcc2..203a0ba 100644 --- a/index.html +++ b/index.html @@ -174,7 +174,7 @@

Exercises

Exercise 2: Download the file below that contains the imdb dataset and the Module 3 exercises in RMD format.

Module-3-Exercises.zip

+href="https://github.com/stats4sd/r2020_04Quiz/raw/main/Module%203%20Exercises.zip">Module-3-Exercises.zip

Create a new project in RStudio and unzip the files into your new project folder.

Then open the workbook, and load in the libraries and the dataset. @@ -364,22 +364,22 @@

Appendix: Useful reference links