Skip to content

Commit

Permalink
bump ci
Browse files Browse the repository at this point in the history
  • Loading branch information
dexter93 committed Sep 19, 2024
1 parent 15a65a2 commit 2fd5d39
Showing 1 changed file with 37 additions and 11 deletions.
48 changes: 37 additions & 11 deletions .github/workflows/auto_build.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,51 @@
name: Compile Firmware
name: Compile Bootloaders

on:
push:
branches:
- master
branches: [ master ]
release:
types:
- published
pull_request:
branches:
- master
workflow_dispatch:

jobs:
Build:
build:
runs-on: ubuntu-latest

container: debian:bullseye

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Build jumploaders
run: sh build.sh

- uses: actions/upload-artifact@v2
- name: Find artifact files
id: find-files
run: |
find build/ -type f -name "*.bin" -print > artifact_files.txt
files=$(cat artifact_files.txt)
echo "FILES=$files" >> $GITHUB_ENV
- uses: actions/upload-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: 'build/*.bin'
path: ${{ env.FILES }}

publish_release:
name: Publish (Release)
runs-on: ubuntu-latest

needs: [build]

if: github.event.release.tag_name

steps:
- uses: actions/download-artifact@v3

- uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
name: Release ${{ github.ref_name }}
files: build/*.bin
fail_on_unmatched_files: true

0 comments on commit 2fd5d39

Please sign in to comment.