Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI fixes #161

Merged
merged 2 commits into from
May 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/devui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,19 @@ jobs:
if: github.ref == 'refs/heads/master'
run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current/safe-apps-developer-ui --delete

- name: Get dev-ui tag version
id: get_devui_version
if: startsWith(github.ref, 'refs/tags/dev-ui')
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}

- name: 'Prepare safe-apps-developer-ui for deploy to Production'
if: startsWith(github.ref, 'refs/tags/dev-ui')
run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ env.STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }}/safe-apps-developer-ui --delete
run: aws s3 sync packages/safe-apps-developer-ui/build s3://${{ secrets.STAGING_BUCKET_NAME }}/releases/${{ steps.get_devui_version.outputs.VERSION }}/safe-apps-developer-ui --delete

- name: 'Production deployment: Enable production deployment'
if: success() && startsWith(github.ref, 'refs/tags/dev-ui')
run: bash .github/scripts/prepare_production_deployment.sh
env:
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }}
VERSION_TAG: ${{ steps.get_version.outputs.VERSION }}
VERSION_TAG: ${{ steps.get_devui_version.outputs.VERSION }}