Skip to content

Use new stack action #94

Use new stack action

Use new stack action #94

Workflow file for this run

name: build
on:
- push
- pull_request
env:
STACK_ENV: CI
jobs:
build:
name: Build, Test & Upload
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: stack
uses: freckle/stack-action@v4
with:
test: false
- name: Check Formatting
run: make format-check
- name: Test
run: make test
- name: Build
run: make build
- name: Make Artifacts Directory
run: mkdir artifacts
- name: Copy CLI Artifact
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-cli-exe ./artifacts
- name: Copy Slack Artifact
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-slack-exe ./artifacts
- name: Copy Discord Artifact
run: cp ${{ steps.stack.outputs.local-bin-path }}/bridge-discord-exe ./artifacts
- name: Tar Artifacts
run: tar -cvf artifacts.tar ./artifacts
- uses: actions/upload-artifact@v2
with:
path: artifacts.tar
if: ${{ github.ref == 'refs/heads/main' }}