mirror of
https://github.com/FOGProject/fos.git
synced 2026-02-05 16:40:59 -06:00
25 lines
571 B
YAML
25 lines
571 B
YAML
name: Add USB Image to Release
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- published
|
|
|
|
jobs:
|
|
add-usb-image:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Create USB Image
|
|
run: |
|
|
sudo apt-get install grub-efi-amd64 parted kpartx
|
|
sudo ./create-usb-image.sh "https://github.com/${{github.repository}}/releases/download/${{ github.event.release.tag_name }}"
|
|
|
|
- name: Release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
files: /tmp/fos-usb.img
|