Skip to content

Commit

Permalink
Updating aws s3 cp repo
Browse files Browse the repository at this point in the history
  • Loading branch information
margon8 committed Nov 1, 2023
1 parent 6845103 commit 617f560
Showing 1 changed file with 24 additions and 17 deletions.
41 changes: 24 additions & 17 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,29 +47,33 @@ jobs:
name: em_entrypoint

- name: Upload EM Entrypoint file to S3
uses: qoqa/[email protected]
uses: a-sync/s3-uploader@master
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-central-1'
AWS_S3_PATH: '/platform/core/latest/MapperEntrypoint.scala'
FILE: 'MapperEntrypoint.scala'
S3_BUCKET: ${{ secrets.AWS_BUCKET }}
S3_KEY: '/platform/core/latest/MapperEntrypoint.scala'
FILE: ./MapperEntrypoint.scala

- name: Download jar
uses: actions/download-artifact@v2
with:
name: jar

- name: Upload jar artifact file to S3
uses: qoqa/[email protected]
uses: a-sync/s3-uploader@master
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-central-1'
AWS_S3_PATH: '/platform/core/latest/metabolic-core-assembly.jar'
FILE: 'metabolic-core-assembly-SNAPSHOT.jar'
S3_BUCKET: ${{ secrets.AWS_BUCKET }}
S3_KEY: '/platform/core/latest/metabolic-core-assembly.jar'
FILE: ./metabolic-core-assembly-SNAPSHOT.jar

deploy-release:
needs: assembly
Expand All @@ -86,27 +90,30 @@ jobs:
name: em_entrypoint

- name: Upload EM Entrypoint file to S3
uses: qoqa/[email protected]
uses: a-sync/s3-uploader@master
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-central-1'
AWS_S3_PATH: ${{ format('/platform/core/{0}/MapperEntrypoint.scala', env.GIT_BRANCH_NAME) }}
FILE: 'MapperEntrypoint.scala'
S3_BUCKET: ${{ secrets.AWS_BUCKET }}
S3_KEY: ${{ format('/platform/core/{0}/MapperEntrypoint.scala', env.GIT_BRANCH_NAME) }}
FILE: ./MapperEntrypoint.scala

- name: Download jar
uses: actions/download-artifact@v2
with:
name: jar

- name: Upload jar artifact file to S3
uses: qoqa/[email protected]
uses: a-sync/s3-uploader@master
with:
args: --acl public-read
env:
AWS_S3_BUCKET: ${{ secrets.AWS_BUCKET }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'eu-central-1'
AWS_S3_PATH: ${{ format('/platform/core/{0}/metabolic-core-assembly.jar', env.GIT_BRANCH_NAME) }}
FILE: 'metabolic-core-assembly-SNAPSHOT.jar'

S3_BUCKET: ${{ secrets.AWS_BUCKET }}
S3_KEY: ${{ format('/platform/core/{0}/metabolic-core-assembly.jar', env.GIT_BRANCH_NAME) }}
FILE: ./metabolic-core-assembly-SNAPSHOT.jar

0 comments on commit 617f560

Please sign in to comment.