yubioath-flutter/.github/workflows/appimage.yml
2019-10-04 09:23:34 +02:00

28 lines
788 B
YAML

name: Build AppImage
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v1
- name: Build docker image that produces the AppImage
run: |
export REF=$(echo ${GITHUB_REF} | cut -d '/' -f 3)
docker build -t xenial-appimage -f docker/xenial-appimage/Dockerfile .
id=$(docker create --privileged xenial-appimage)
docker start --attach $id
docker cp $id:/yubioath-desktop/Yubico_Authenticator-x86_64.AppImage yubioath-desktop-${REF}.AppImage
mkdir deploy
mv yubioath-desktop-${REF}.AppImage deploy
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: yubioath-desktop-appimage
path: deploy