Skip to content

Commit

Permalink
Fix release workflow syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgreig committed Apr 20, 2020
1 parent 56efd2d commit b7e6b4b
Showing 1 changed file with 93 additions and 93 deletions.
186 changes: 93 additions & 93 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,96 +96,96 @@ jobs:
ls .
ls ../software/
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
body: |
The following pre-built files are available:
* `ffp_linux_x86_64`: FFP control software for Linux (64-bit)
* `ffp_windows_x86_64.exe`: FFP control software for Windows (64-bit)
* `ffp_windows_i686.exe`: FFP control software for Windows (32-bit)
* `ffp_firmware.elf`: FFP firmware image in ELF format
* `ffp_firmware.bin`: FFP firmware image in raw binary format
* `ffp_firmware.dfu`: FFP firmware image in DfuSe format
FFP control software requires libusb be installed;
on Linux it should suffice to install libusb-1.0,
on Windows download the pre-built DLLs from
[libusb.info](https://libusb.info/) and either install
them system-wide or put them in the same directory as
your executable.
To bootload the firmware using dfu-util, run:
```
$ ffp bootload
$ dfu-util -a 0 -D ffp_firmware.dfu
```
See [firmware/README.md](https://github.com/adamgreig/ffp/blob/master/firmware/README.md) for more details.
- name: Upload FFP for Linux x86_64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_linux_x86_64
asset_name: ffp_linux_x86_64
asset_content_type: application/octet-stream

- name: Upload FFP for Windows x86_64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_windows_x86_64.exe
asset_name: ffp_windows_x86_64.exe
asset_content_type: application/octet-stream

- name: Upload FFP for Windows i686
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_windows_i686.exe
asset_name: ffp_windows_i686.exe
asset_content_type: application/octet-stream

- name: Upload FFP firmware ELF
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.elf
asset_name: ffp_firmware.elf
asset_content_type: application/octet-stream

- name: Upload FFP firmware BIN
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.bin
asset_name: ffp_firmware.bin
asset_content_type: application/octet-stream

- name: Upload FFP firmware DFU
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.dfu
asset_name: ffp_firmware.dfu
asset_content_type: application/octet-stream
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: true
prerelease: false
body: |
The following pre-built files are available:
* `ffp_linux_x86_64`: FFP control software for Linux (64-bit)
* `ffp_windows_x86_64.exe`: FFP control software for Windows (64-bit)
* `ffp_windows_i686.exe`: FFP control software for Windows (32-bit)
* `ffp_firmware.elf`: FFP firmware image in ELF format
* `ffp_firmware.bin`: FFP firmware image in raw binary format
* `ffp_firmware.dfu`: FFP firmware image in DfuSe format
FFP control software requires libusb be installed;
on Linux it should suffice to install libusb-1.0,
on Windows download the pre-built DLLs from
[libusb.info](https://libusb.info/) and either install
them system-wide or put them in the same directory as
your executable.
To bootload the firmware using dfu-util, run:
```
$ ffp bootload
$ dfu-util -a 0 -D ffp_firmware.dfu
```
See [firmware/README.md](https://github.com/adamgreig/ffp/blob/master/firmware/README.md) for more details.
- name: Upload FFP for Linux x86_64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_linux_x86_64
asset_name: ffp_linux_x86_64
asset_content_type: application/octet-stream

- name: Upload FFP for Windows x86_64
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_windows_x86_64.exe
asset_name: ffp_windows_x86_64.exe
asset_content_type: application/octet-stream

- name: Upload FFP for Windows i686
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: software/ffp_windows_i686.exe
asset_name: ffp_windows_i686.exe
asset_content_type: application/octet-stream

- name: Upload FFP firmware ELF
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.elf
asset_name: ffp_firmware.elf
asset_content_type: application/octet-stream

- name: Upload FFP firmware BIN
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.bin
asset_name: ffp_firmware.bin
asset_content_type: application/octet-stream

- name: Upload FFP firmware DFU
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: firmware/ffp_firmware.dfu
asset_name: ffp_firmware.dfu
asset_content_type: application/octet-stream

0 comments on commit b7e6b4b

Please sign in to comment.