bump ci #45
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: Compile Bootloaders | |
on: | |
push: | |
branches: [ master ] | |
release: | |
types: | |
- published | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: debian:latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build jumploaders | |
run: sh build.sh | |
- name: Find artifact files | |
id: find-files | |
run: | | |
find build/ -type f -name "*.bin" -print > artifact_files.txt | |
- name: Print files for debugging | |
run: cat artifact_files.txt | |
- name: Upload artifacts | |
run: | | |
files=$(cat artifact_files.txt) | |
for file in $files; do | |
echo "Uploading $file" | |
echo "::set-output name=artifacts::$file" | |
done | |
shell: bash | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: Pre-Compiled Jumploaders | |
path: | | |
$(cat artifact_files.txt) | |
if-no-files-found: error | |
publish_release: | |
name: Publish (Release) | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: github.event.release.tag_name | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: Pre-Compiled Jumploaders | |
path: build/ | |
- 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 |