Add the s3cfg secret

This commit is contained in:
Dimitris Zervas 2020-10-17 00:05:28 +03:00
parent 4c06d8b626
commit 4afac426f0
No known key found for this signature in database
GPG Key ID: 5C27D7C9D1901A30

View File

@ -13,14 +13,21 @@ 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
- run: make dist-deploy - name: Write the s3cfg secret
run: echo "${secrets.S3CFG}" > .s3cfg
- 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 - 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}"