Skip to content

Commit

Permalink
Add Release assets
Browse files Browse the repository at this point in the history
  • Loading branch information
codello committed Mar 25, 2024
1 parent 2a3a4ee commit f35eeea
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Build
on: push
on:
push:
pull_request:
branches: [ main ]
release:
types: [ published ]

jobs:
build:
name: Compile Scores
name: Build Scores
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -23,9 +28,11 @@ jobs:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
- name: Compile Scores
run: make all
- name: Upload Artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: Scores
path: build/*

- name: Upload Release Assets
if: ${{ github.event_name == 'release' && github.event.action == 'published' }}
run: gh release upload "$GITHUB_REF_NAME" build/*

0 comments on commit f35eeea

Please sign in to comment.