Skip to content

Commit

Permalink
replace github upload with action (#140)
Browse files Browse the repository at this point in the history
  • Loading branch information
brycahta authored Aug 26, 2021
1 parent 87eb749 commit 8865f78
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Build and Test

on:
push:
branches:
- main
tags-ignore:
- "v*.*.*"
pull_request:
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
release:
name: Release
runs-on: ubuntu-20.04
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -34,8 +33,20 @@ jobs:
- name: Validate Release Version
run: make validate-release-version

- name: Github Release
run: make release-github
- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: Build Artifacts
run: make build-release-assets

- name: Upload Artifacts to GitHub
uses: softprops/action-gh-release@v1
with:
files: |
build/bin/*
build/k8s-resources/${{ env.RELEASE_VERSION }}/individual-resources.tar
build/k8s-resources/${{ env.RELEASE_VERSION }}/all-resources.yaml
build/k8s-resources/${{ env.RELEASE_VERSION }}/helm-chart-archives/*
- name: Release Docker Linux
run: make release-docker-linux
Expand All @@ -47,7 +58,6 @@ jobs:
releaseWindows:
name: Release Windows
runs-on: windows-2019
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -68,7 +78,6 @@ jobs:
name: Post Release
runs-on: ubuntu-20.04
needs: [release, releaseWindows]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand All @@ -86,7 +95,6 @@ jobs:
name: Helm Lint Test
runs-on: ubuntu-20.04
needs: [release, releaseWindows]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v2
Expand Down

0 comments on commit 8865f78

Please sign in to comment.