Skip to content

Commit

Permalink
test publish to s3
Browse files Browse the repository at this point in the history
  • Loading branch information
kkozik-amplify committed Jan 15, 2024
1 parent 7a410d7 commit 6ac4477
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -515,3 +515,34 @@ jobs:

- name: Verify ${{ matrix.arch }} rpm
run: ./.github/scripts/verify_artifact.sh ${{ env.pkg_name }} v${{ env.version }}


publish-linux:
needs:
- build
- set-product-version
runs-on: ubuntu-latest
strategy:
matrix:
include:
- { arch: "amd64" }
steps:
- name: Set package version
run: |
echo "pkg_version=$(echo ${{ needs.set-product-version.outputs.product-version }} | sed 's/\-/~/g')" >> $GITHUB_ENV
- name: Set package name
run: |
echo "pkg_name=consul-${{ env.pkg_version }}-1.${{ matrix.arch }}.rpm" >> $GITHUB_ENV
- name: Download artifact
id: download-artifact
uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
with:
name: ${{ env.pkg_name }}
- name: display artifacts
run: ls -R ${{ steps.download-artifact.outputs.download-path }}
- uses: jakejarvis/s3-sync-action@master
with:
aws_key_id: ${{ secrets.AWS_KEY_ID }}
aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY}}
aws_bucket: ${{ secrets.AWS_BUCKET }}
source_dir: ${{ steps.download-artifact.outputs.download-path }}

0 comments on commit 6ac4477

Please sign in to comment.