mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
Testing github action workflow (#454)
Build and upload linux/mac binaries to S3 (unofficial releases)
This commit is contained in:
parent
12405d5106
commit
9fabb602bf
33
.github/workflows/artifacts.yml
vendored
Normal file
33
.github/workflows/artifacts.yml
vendored
Normal 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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user