File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a docker container, publish it to Github Packages
2
+ name : Build DEV
3
+
4
+ on :
5
+ push :
6
+ branches : [main]
7
+
8
+ jobs :
9
+ deploy-cloudfront :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - uses : actions/checkout@v2
13
+ - name : Cache node modules
14
+ uses : actions/cache@v3
15
+ with :
16
+ path : ~/.yarn
17
+ key : ${{ runner.os }}-build-source-${{ hashFiles('**/yarn.lock') }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-build-source-
20
+ ${{ runner.os }}-build-
21
+ ${{ runner.os }}-
22
+
23
+ - name : Install dependencies
24
+ run : yarn --cache-folder ~/.yarn --frozen-lockfile --check-files
25
+
26
+ - name : Build source
27
+ run : yarn build
28
+
29
+ - name : S3 and CloudFront Deploy
30
+ run : |
31
+ aws s3 sync ./dist s3://${{ secrets.S3_BUCKET_NAME }}
32
+ env :
33
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
34
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
35
+ AWS_DEFAULT_REGION : ${{ secrets.AWS_REGION }}
36
+ notify :
37
+ needs : [deploy-cloudfront]
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - uses : appleboy/telegram-action@master
41
+ with :
42
+ to : ${{ secrets.TELEGRAM_CHAT_ID }}
43
+ token : ${{ secrets.TELEGRAM_RELEASE_BOT_TOKEN }}
44
+ format : markdown
45
+ message : |
46
+ `[Fancy-Dashboard]` Deployed Fancy-Dashboard on Dev
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ export default defineComponent({
85
85
},
86
86
87
87
setup() {
88
- const route = useRoute ()
88
+ const route: any = useRoute ()
89
89
const store = useDashboardStore ()
90
90
const isPin = computed <boolean >(() => store .isPin )
91
91
const setIsPin = (b : boolean ) => store .setSideBar (b )
You can’t perform that action at this time.
0 commit comments