Use new stack action #94
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
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' }} |