Skip to content

Commit

Permalink
Revert "[MTA-98] Remove creating redundant s3 files (#127)" (#128)
Browse files Browse the repository at this point in the history
This reverts commit 81d2e4a.
  • Loading branch information
dirtybit authored Mar 25, 2021
1 parent 81d2e4a commit a8d3a53
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
- name: Set `NEXT_PUBLIC_VERSION` variable
run: echo "NEXT_PUBLIC_VERSION=0.0.0-${GITHUB_SHA}" >> $GITHUB_ENV

- name: Set `TARBALL` variable
run: echo "TARBALL=microsoft-teams-app-dev-${NEXT_PUBLIC_VERSION}.tar.gz" >> $GITHUB_ENV

- name: Use Node.js 12.x
uses: actions/setup-node@v1
with:
Expand Down Expand Up @@ -86,7 +89,7 @@ jobs:
aws-region: ${{ env.AWS_REGION }}

- name: Upload release
run: aws s3 cp microsoft-teams-app-dev-latest.tar.gz $S3_PATH/
run: aws s3 cp $TARBALL $S3_PATH/

deploy:
name: Deploy
Expand All @@ -107,6 +110,12 @@ jobs:
- name: Set `NEXT_PUBLIC_VERSION` variable
run: echo "NEXT_PUBLIC_VERSION=0.0.0-${GITHUB_SHA}" >> $GITHUB_ENV

- name: Set `TARBALL` variable
run: echo "TARBALL=microsoft-teams-app-dev-${NEXT_PUBLIC_VERSION}.tar.gz" >> $GITHUB_ENV

- name: Change latest release
run: aws s3 cp $S3_PATH/$TARBALL $S3_PATH/microsoft-teams-app-dev-latest.tar.gz

- name: Set environments
run: aws opsworks --region $AWS_REGION update-app --app-id $AWS_APP_ID --environment "$(scripts/get_environment.js)"

Expand Down

0 comments on commit a8d3a53

Please sign in to comment.