Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Aug 5, 2021
1 parent 58344af commit c3e625c
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
release:
types:
- created

jobs:

dist_linux:
runs-on: ubuntu-latest
container:
image: crystallang/crystal:latest-alpine
steps:
- uses: actions/checkout@v2
- name: Update Libs
run: apk add --update --upgrade --no-cache --force-overwrite libxml2-dev yaml-dev
- name: Build
run: |
shards build --production --release --static --no-debug
strip ./bin/frightcrawler
- name: Upload
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.RLS_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./bin/frightcrawler
asset_name: frightcrawler-${{ github.event.release.tag_name }}-linux-x86_64
asset_content_type: binary/octet-stream

0 comments on commit c3e625c

Please sign in to comment.