Skip to content

Commit

Permalink
Upload and release build artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
mbg committed Nov 26, 2021
1 parent 9cf25f9 commit ddb6af0
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,16 @@ jobs:
run: |
stack --no-terminal build --only-dependencies --test --fast --system-ghc
- name: Build
- name: Build and install
run: |
stack --no-terminal build --test --fast --system-ghc --no-run-tests
stack --no-terminal build --test --fast --system-ghc --no-run-tests --copy-bins --local-bin-path=.
- name: Upload build artifact
uses: actions/upload-artifact@v2
with:
name: plc-llvm
path: './plc-llvm'
if-no-files-found: error

- name: Run tests
run: |
Expand All @@ -59,3 +66,13 @@ jobs:
check_name: 'tests'
comment_title: 'Test results'
fail_on: 'test failures'

- name: Upload release
if: ${{ github.ref == 'refs/heads/master' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: './plc-llvm'
asset_name: 'plc-llvm'
tag: 'latest-plc-llvm'
overwrite: true

0 comments on commit ddb6af0

Please sign in to comment.