@@ -11,19 +11,10 @@ jobs:
11
11
steps :
12
12
- uses : actions/checkout@master
13
13
- name : Setup node 14
14
- uses : actions/setup-node@v1
14
+ uses : actions/setup-node@v4
15
15
with :
16
16
node-version : 14.x
17
- - name : Get yarn cache directory path
18
- id : yarn-cache-dir-path
19
- run : echo "::set-output name=dir::$(yarn cache dir)"
20
- - uses : actions/cache@v2
21
- id : yarn-cache
22
- with :
23
- path : ${{ steps.yarn-cache-dir-path.outputs.dir }}
24
- key : ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25
- restore-keys : |
26
- ${{ runner.os }}-yarn-
17
+ cache : " yarn"
27
18
- name : Build & create dist/artifact
28
19
run : |
29
20
yarn install --frozen-lockfile
43
34
AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
44
35
AWS_ACCESS_KEY_ID : ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
45
36
AWS_SECRET_ACCESS_KEY : ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
46
- AWS_REGION : ' us-west-1' # optional: defaults to us-east-1
47
- SOURCE_DIR : ' artifact' # optional: defaults to entire repository
37
+ AWS_REGION : " us-west-1" # optional: defaults to us-east-1
38
+ SOURCE_DIR : " artifact" # optional: defaults to entire repository
48
39
DEST_DIR : ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/latest
49
40
- name : Upload Tagged Version to S3
50
41
uses : jakejarvis/s3-sync-action@master
54
45
AWS_S3_BUCKET : ${{ secrets.AWS_S3_BUCKET_DOWNLOADS }}
55
46
AWS_ACCESS_KEY_ID : ${{ secrets.S3_DOWNLOADS_AWS_ACCESS_KEY_ID }}
56
47
AWS_SECRET_ACCESS_KEY : ${{ secrets.S3_DOWNLOADS_AWS_SECRET_ACCESS_KEY }}
57
- AWS_REGION : ' us-west-1' # optional: defaults to us-east-1
58
- SOURCE_DIR : ' artifact' # optional: defaults to entire repository
48
+ AWS_REGION : " us-west-1" # optional: defaults to us-east-1
49
+ SOURCE_DIR : " artifact" # optional: defaults to entire repository
59
50
DEST_DIR : ${{ secrets.S3_AWS_PRODUCTS_FOLDER }}/$BUILD_NAME/$BUILD_VERSION
60
51
- name : Send update to the store
61
52
env :
64
55
STORE_URL : ${{ secrets.THEMEISLE_STORE_URL }}
65
56
GITHUB_TOKEN : ${{ secrets.BOT_TOKEN }}
66
57
BUILD_VERSION : ${{ env.BUILD_VERSION }}
67
- uses : Codeinwp/action-store-release@main
58
+ uses : Codeinwp/action-store-release@main
0 commit comments