Skip to content

Use patched pbr to fix cli #236

Use patched pbr to fix cli

Use patched pbr to fix cli #236

Workflow file for this run

on:
push:
pull_request:
release:
types: [published]
name: ci
jobs:
appimage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- run: docker run --rm -v "$PWD:/popsicle" -w "/popsicle" rust:1.64.0-buster bash appimage.sh
- uses: actions/upload-artifact@v2
with:
if-no-files-found: error
name: popsicle-appimage-${{ github.sha }}
path: Popsicle_USB_Flasher-*.AppImage*
upload-to-release:
if: github.event_name == 'release'
runs-on: ubuntu-latest
needs: appimage
steps:
- uses: actions/download-artifact@v2
with:
name: popsicle-appimage-${{ github.sha }}
- run: printf 'APPIMAGE_FILENAME=%s\n' Popsicle_USB_Flasher-*.AppImage > $GITHUB_ENV
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ${{ env.APPIMAGE_FILENAME }}
asset_name: ${{ env.APPIMAGE_FILENAME }}
asset_content_type: application/vnd.appimage