Skip to content

Commit

Permalink
Only upload if the action is running for master. Renames make.sh to u…
Browse files Browse the repository at this point in the history
…pload.sh
  • Loading branch information
andy-fastly committed Apr 7, 2021
1 parent 1246e86 commit 4515a2b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
uses: actions/checkout@v2
- name: build
run: ./scripts/build.sh
- name: Run make script
- name: upload
if: ${{ github.ref }} == "/refs/heads/master"
run: |
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 803688608479.dkr.ecr.us-west-2.amazonaws.com
./make.sh
./upload.sh
env:
PROD_ID: ${{ secrets.SIGSCI_PROD_CANONICAL_ID }}
2 changes: 0 additions & 2 deletions make.sh → upload.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/sh
set -ex

# ./scripts/build.sh

if [ -n "${PROD_ID}" ]; then
## setup our package properties by distro
PKG_NAME="sigsci-module-golang"
Expand Down

0 comments on commit 4515a2b

Please sign in to comment.