Skip to content

add release ci

add release ci #38

Workflow file for this run

name: Compile Firmware
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build jumploaders
run: sh build.sh
- uses: actions/upload-artifact@v3
with:
name: Pre-Compiled Jumploaders
path: build/*.bin
publish_release:
name: Publish (Release)
runs-on: ubuntu-latest
needs: [build]
if: startsWith(github.ref, 'refs/tags/')
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