Skip to content

Commit

Permalink
actions: add automated releases of faas binary
Browse files Browse the repository at this point in the history
  • Loading branch information
lance committed Jul 17, 2020
1 parent 790cb17 commit 0f39bac
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/releases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build:
name: Build and Release Artifacts
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand All @@ -23,7 +24,27 @@ jobs:
USER: ${{ secrets.QUAY_USERNAME }}
PASS: ${{ secrets.QUAY_PASSWORD }}
run: docker login -u "$USER" -p "$PASS" quay.io && make push
- name: Compress Release Binary
run: gzip ./faas
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Binary
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./faas.gz
asset_name: faas.gz
asset_content_type: application/x-gzip

# TODO: make release
# - build cross-platform binaries
# - create a release with assets
# TODO:
# - build cross-platform binaries (make release)

0 comments on commit 0f39bac

Please sign in to comment.