Skip to content

Commit

Permalink
Merge pull request #3 from gnosis/develop
Browse files Browse the repository at this point in the history
Add step to get tag version
  • Loading branch information
mmv08 authored May 14, 2021
2 parents 3a6ad26 + 9d497e2 commit 995d474
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/devui-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@ jobs:
if: github.ref == 'refs/heads/main'
run: aws s3 sync build s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/current --delete

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

- name: 'Prepare safe-apps-developer-ui for deploy to Production'
if: startsWith(github.ref, 'refs/tags/v')
run: aws s3 sync build s3://${{ secrets.AWS_STAGING_BUCKET_NAME }}/releases/${{ github.event.release.tag_name }} --delete
Expand All @@ -80,4 +85,4 @@ jobs:
env:
PROD_DEPLOYMENT_HOOK_TOKEN: ${{ secrets.PROD_DEPLOYMENT_HOOK_TOKEN }}
PROD_DEPLOYMENT_HOOK_URL: ${{ secrets.PROD_DEPLOYMENT_HOOK_URL }}
VERSION_TAG: ${{ steps.get_devui_version.outputs.VERSION }}
VERSION_TAG: ${{ steps.get_tag_version.outputs.VERSION_TAG }}

0 comments on commit 995d474

Please sign in to comment.