-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
on: | ||
push: | ||
tags: | ||
- "*" | ||
jobs: | ||
dist_linux: | ||
runs-on: ubuntu-latest | ||
container: | ||
image: crystallang/crystal:latest-alpine | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get current git tag | ||
id: tag | ||
uses: devops-actions/[email protected] | ||
|
||
- name: Update Libs | ||
run: apk add --update --upgrade --no-cache --force-overwrite libxml2-dev yaml-dev gpg gpg-agent | ||
- name: Build | ||
run: | | ||
shards build --production --release --no-debug --static | ||
strip ./bin/kube-helper | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
REPO: $REPO | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
body: | | ||
Changes in this Release | ||
- Updates for this release | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./bin/kube-helper | ||
asset_name: kube-helper-${{steps.tag.outputs.tag}}-linux-x86_64 | ||
asset_content_type: binary/octet-stream |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters