File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ # 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
2
+
3
+ # This is setup to automatically publish the default branch to the **staging** environment, and any new releases to the **live** environment
4
+
5
+ # ####
6
+ # How to customise this
7
+ # 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.
8
+ # ####
9
+
10
+ name : Auto Deployment
11
+
12
+ # Controls when the action will run. Triggers the workflow on push or pull request
13
+ # events but only for the main branch
14
+ on :
15
+ push :
16
+ branches : [ main ]
17
+ release :
18
+ types : [ published ]
19
+
20
+ # A workflow run is made up of one or more jobs that can run sequentially or in parallel
21
+ jobs :
22
+ # This workflow contains a single job called "build"
23
+ deploy :
24
+ # The type of runner that the job will run on
25
+ runs-on : ubuntu-latest
26
+
27
+ # Steps represent a sequence of tasks that will be executed as part of the job
28
+ steps :
29
+ - name : Fast Webhook
30
+ # You may pin to the exact commit or the version.
31
+ # uses: jasongitmail/fast-webhook@6deed6ce6c4f3b7044a27fc272b7a019a6e4c41a
32
+ uses : jasongitmail/fast-webhook@v1.1.4
33
+ with :
34
+ # The webhook URL to send the request to.
35
+ url : ${{ secrets.SHINYSERVERURL }}
36
+ # The stringified JSON body to be sent, if any.
37
+ json : ' {"secret": "${{ secrets.SHINYDEPLOYSECRET }}", "repo": "${{ github.repository }}", "ref": "${{ github.ref }}"}'
You can’t perform that action at this time.
0 commit comments