File tree Expand file tree Collapse file tree 3 files changed +73
-0
lines changed Expand file tree Collapse file tree 3 files changed +73
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy to the internet
2
+
3
+ on :
4
+ # Runs on pushes targeting the default branch
5
+ push :
6
+ branches : [main]
7
+
8
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ jobs :
15
+ # Build job
16
+ build :
17
+ runs-on : ubuntu-latest
18
+ steps :
19
+ - uses : actions/checkout@v3
20
+
21
+ - name : Update revision number in cache manifest
22
+ run : sed -i "s/# Offline cache.*/# Offline cache $(git rev-parse --short HEAD)/" scouting.appcache
23
+
24
+ - name : Print new content of scouting appcache
25
+ run : cat scouting.appcache
26
+
27
+ - uses : actions/upload-pages-artifact@v1
28
+ with :
29
+ path : .
30
+
31
+
32
+ # Deploy job
33
+ deploy :
34
+ # Add a dependency to the build job
35
+ needs : build
36
+
37
+ # Grant GITHUB_TOKEN the permissions required to make a Pages deployment
38
+ permissions :
39
+ pages : write # to deploy to Pages
40
+ id-token : write # to verify the deployment originates from an appropriate source
41
+
42
+ # Deploy to the github-pages environment
43
+ environment :
44
+ name : github-pages
45
+ url : ${{ steps.deployment.outputs.page_url }}
46
+
47
+ # Specify runner + deployment step
48
+ runs-on : ubuntu-latest
49
+ steps :
50
+ - name : Deploy to GitHub Pages
51
+ id : deployment
52
+ uses : actions/deploy-pages@v1
Original file line number Diff line number Diff line change
1
+ scouting2024.2626.live
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # Add the opening bracket to the output file
4
+ echo " ["
5
+
6
+ # Loop through all .json files in the directory
7
+ for file in * .json
8
+ do
9
+ # Concatenate the contents of the current file to the output file
10
+ cat " $file "
11
+
12
+ # Add a comma before each file, except for the first one
13
+ if [ " $file " != " *.json" ]
14
+ then
15
+ echo " ,"
16
+ fi
17
+ done
18
+
19
+ # Add the closing bracket to the output file
20
+ echo " ]"
You can’t perform that action at this time.
0 commit comments