File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,11 +44,21 @@ jobs:
4444 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
4545 aws-region : ${{ env.AWS_REGION }}
4646
47- - name : Move appspec.yml to root
48- run : mv ./FixLog_Server/appspec.yml .
47+ - name : Create .env file from GitHub secrets
48+ run : |
49+ echo "mysql_url=${{ secrets.mysql_url }}" >> .env
50+ echo "mysql_username=${{ secrets.mysql_username }}" >> .env
51+ echo "mysql_password=${{ secrets.mysql_password }}" >> .env
52+ echo "jwt_key=${{ secrets.jwt_key }}" >> .env
53+
54+ - name : Move appspec.yml to root if necessary
55+ run : |
56+ if [ -f ./FixLog_Server/appspec.yml ]; then
57+ mv ./FixLog_Server/appspec.yml .
58+ fi
4959
5060 - name : Zip deploy package
51- run : zip -r ${{ github.sha }}.zip .
61+ run : zip -r ${{ github.sha }}.zip . -x ".git/*"
5262
5363 - name : Upload to S3
5464 run : |
You can’t perform that action at this time.
0 commit comments