Skip to content

Commit

Permalink
Snapcraft docker (#5435)
Browse files Browse the repository at this point in the history
* Use the relative path to the snap

* Use single docker command
  • Loading branch information
LyzardKing authored and tobiasdiez committed Oct 12, 2019
1 parent 08cddc8 commit c43a2ad
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/deployment.yml
Expand Up @@ -88,10 +88,8 @@ jobs:
env:
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
run: |
docker run -v $(pwd):$(pwd) -t lyzardking/snapcraft-bionic sh -c "apt update -qq && cd $(pwd) && snapcraft && mv jabref*.snap build/distribution/"
cd build/distribution/
mkdir .snapcraft && echo ${SNAPCRAFT_LOGIN_FILE} | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
docker run -v $(pwd):$(pwd) -t lyzardking/snapcraft-bionic sh -c "snapcraft push --release=edge *.snap || true"
docker run -v $(pwd):$(pwd) -t lyzardking/snapcraft-bionic sh -c "apt update -qq && cd $(pwd) && snapcraft && mv jabref*.snap build/distribution/ && snapcraft push build/distribution/jabref*.snap --release edge || true"
shell: bash
- name: Upload to builds.jabref.org
uses: garygrossgarten/github-action-scp@release
Expand Down

0 comments on commit c43a2ad

Please sign in to comment.