mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-25 23:14:18 +03:00
28 lines
788 B
YAML
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
|