Merge pull request #183 from dzervas/fix_deploy_action
Fix deploy action
This commit is contained in:
commit
b8cb4bda98
24
.github/workflows/deploy.yml
vendored
24
.github/workflows/deploy.yml
vendored
@ -13,14 +13,24 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- run: make test
|
- name: Test the code (lint)
|
||||||
- run: make dist
|
run: make test
|
||||||
|
- name: Package the code
|
||||||
- run: make dist-deploy
|
run: make dist
|
||||||
|
|
||||||
|
- name: Branch based code deployment
|
||||||
|
run: make dist-deploy
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
CIRCLE_BRANCH: ${{GITHUB_REF_NAME}}
|
CIRCLE_BRANCH: "${GITHUB_REF_NAME}"
|
||||||
- run: make dist-deploy
|
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
|
||||||
|
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
|
||||||
|
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
|
||||||
|
- name: Tag based code deployment
|
||||||
|
run: make dist-deploy
|
||||||
if: github.event_name == 'create'
|
if: github.event_name == 'create'
|
||||||
env:
|
env:
|
||||||
CIRCLE_TAG: ${{GITHUB_REF_NAME}}
|
CIRCLE_TAG: "${GITHUB_REF_NAME}"
|
||||||
|
AWS_ACCESS_KEY: ${{ secrets.AWS_ACCESS_KEY }}
|
||||||
|
AWS_SECRET_KEY: ${{ secrets.AWS_SECRET_KEY }}
|
||||||
|
AWS_SESSION_TOKEN: ${{ secrets.AWS_SESSION_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user