Skip to content

Add Github workflow

Add Github workflow #1

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
jobs:
build_release_x64:
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
docker run -d --name alpine -v $(pwd):/workspace -w /workspace crystallang/crystal:latest-alpine tail -f /dev/null
docker exec alpine shards install --without-development
docker exec alpine crystal build src/velero-notifications.cr --release --static
cp velero-notifications velero-notifications-linux-x86_64
gh release create ${{ env.VERSION }} -n "${{ env.MESSAGE }}" -t "${{ env.NAME }}" || true
gh release upload ${{ env.VERSION }} ${{ env.FILES }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.ref_name }}
MESSAGE: "WIP"
NAME: ${{ github.ref_name }}
FILES: velero-notifications-linux-x86_64