Skip to content

Commit 4515a2b

Browse files
committed
Only upload if the action is running for master. Renames make.sh to upload.sh
1 parent 1246e86 commit 4515a2b

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
uses: actions/checkout@v2
2525
- name: build
2626
run: ./scripts/build.sh
27-
- name: Run make script
27+
- name: upload
28+
if: ${{ github.ref }} == "/refs/heads/master"
2829
run: |
2930
aws ecr get-login-password --region us-west-2 | docker login --username AWS --password-stdin 803688608479.dkr.ecr.us-west-2.amazonaws.com
30-
./make.sh
31+
./upload.sh
3132
env:
3233
PROD_ID: ${{ secrets.SIGSCI_PROD_CANONICAL_ID }}

make.sh renamed to upload.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
#!/bin/sh
22
set -ex
33

4-
# ./scripts/build.sh
5-
64
if [ -n "${PROD_ID}" ]; then
75
## setup our package properties by distro
86
PKG_NAME="sigsci-module-golang"

0 commit comments

Comments
 (0)