1717 node-version : [14.x]
1818 steps :
1919 - name : Checkout the repository
20- uses : actions/checkout@v1
20+ uses : actions/checkout@v3
21+ with :
22+ ref : ${{ github.event.release.tag_name }}
2123 - name : Use NodeJS ${{ matrix.node-version }}
22- uses : actions/setup-node@v2
24+ uses : actions/setup-node@v3
2325 with :
2426 node-version : ${{ matrix.node-version }}
2527 - name : Install dependencies and lint
3234 cd client
3335 npm run build
3436 - name : Archive Development Artifact
35- uses : actions/upload-artifact@v3
37+ uses : actions/upload-artifact@v4
3638 with :
3739 name : build
40+ include-hidden-files : true
3841 path : |
3942 client/build
4043 client/.firebaserc
4952 node-version : [14.x]
5053 steps :
5154 - name : Checkout the repository
52- uses : actions/checkout@v1
55+ uses : actions/checkout@v3
56+ with :
57+ ref : ${{ github.event.release.tag_name }}
5358 - name : Use NodeJS ${{ matrix.node-version }}
54- uses : actions/setup-node@v2
59+ uses : actions/setup-node@v3
5560 with :
5661 node-version : ${{ matrix.node-version }}
5762 - name : Install Dependencies and lint
6671 runs-on : ubuntu-latest
6772 steps :
6873 - name : Download Artifact
69- uses : actions/download-artifact@v3
74+ uses : actions/download-artifact@v4
7075 with :
7176 name : build
7277 - name : Deploy to Firebase
7782 FIREBASE_TOKEN : ${{ secrets.FIREBASE_TOKEN }}
7883
7984 deploy-server :
85+ if : ${{ vars.IS_DEPLOY_SERVER == 'heroku' }}
8086 name : Deploy Server to Heroku
8187 needs : lint-server
8288 runs-on : ubuntu-latest
8692 HEROKU_APP : ${{ secrets.HEROKU_APP }}
8793 steps :
8894 - name : Checkout the repository
89- uses : actions/checkout@v1
95+ uses : actions/checkout@v3
96+ with :
97+ ref : ${{ github.event.release.tag_name }}
9098 - run : |
9199 cat >~/.netrc <<EOF
92100 machine api.heroku.com
@@ -105,12 +113,14 @@ jobs:
105113 runs-on : ubuntu-latest
106114 steps :
107115 - name : Login to Docker Hub
108- uses : docker/login-action@v2
116+ uses : docker/login-action@v3
109117 with :
110118 username : ${{ secrets.DOCKERHUB_USERNAME }}
111119 password : ${{ secrets.DOCKERHUB_TOKEN }}
112120 - name : Checkout the repository
113- uses : actions/checkout@v1
121+ uses : actions/checkout@v3
122+ with :
123+ ref : ${{ github.event.release.tag_name }}
114124 - name : Create temporary env variables
115125 # Replace these files with actual values during
116126 # runtime on 'docker-compose up'
0 commit comments