Skip to content

Commit

Permalink
bulid: add fkl cd scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Oct 7, 2022
1 parent ace94aa commit 80ee2bc
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
42 changes: 42 additions & 0 deletions .github/workflows/fkl-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Feakin DSL CLI CD

on:
push:
tags:
- '*'

jobs:
publish:
name: Publish for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: fkl
asset_name: fkl-linux
- os: windows-latest
artifact_name: fkl.exe
asset_name: fkl-windows.exe
- os: macos-latest
artifact_name: fkl
asset_name: fkl-macos

steps:
- uses: actions/checkout@v1

- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Build
run: cargo build --release --manifest-path=crates/fkl_cli/Cargo.toml

- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: crates/target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
2 changes: 1 addition & 1 deletion Procfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
web: target/release/server
web: crates/target/release/server

0 comments on commit 80ee2bc

Please sign in to comment.