Testing github action workflow (#454)

Build and upload linux/mac binaries to S3 (unofficial releases)
This commit is contained in:
Dan Sosedoff 2020-02-11 22:37:24 -06:00 committed by GitHub
parent 12405d5106
commit 9fabb602bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/artifacts.yml vendored Normal file
View File

@ -0,0 +1,33 @@
name: Upload binaries to S3
on:
push:
branches:
- master
pull_request:
branches:
- '*'
jobs:
run-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Make binaries
uses: sosedoff/actions/golang-build@master
with:
args: linux/amd64 darwin/amd64
env:
COMPRESS_FILES: 1
- name: Upload to Amazon S3
uses: ItsKarma/aws-cli@v1.70.0
with:
args: s3 cp --acl public-read --recursive --exclude '*' --include '*' /github/workspace/.release/ s3://pgweb-github-builds/${{ github.base_ref || github.ref }}/
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: ${{ secrets.AWS_REGION }}