Skip to content

Commit

Permalink
Snap GitHub ci (#5379)
Browse files Browse the repository at this point in the history
* Build snap from java package

* add snap to github ci

* Use docker snapcraft

* Add container to ubuntu matrix item

* move snap workflow to matrix

* add matrix to snapbuild

* add transfer.sh link

* Use tar from build/distribution

* Add stable snapcraft

* Remove explicit container

* Attempt at a github actions integration

* Try to make it work...

* Try to fix ?

* Build without docker

* Build with latest docker

* Add docker image based on bionic

* Temporarily revert to version-script

* Uncomment upload to builds.jabref

* Make sure to move only jabref snap to build folder

* Update and rename deployment.yml to snap-deployment.yml

Modify to push again

* Update and rename snap-deployment.yml to deployment.yml

* Reenable checks for PRs

* Temporarily disable master branch check to test

* I'm tired...

* Fix branch name detection for PRs

* Try to fix branch name detection

* Update deployment.yml

* Update deployment.yml

* Remove on PR
  • Loading branch information
LyzardKing authored and tobiasdiez committed Oct 7, 2019
1 parent 9b682ac commit 1c3802e
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 344 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@ jobs:
with:
depth: 1
submodules: true
- name: Extract branch name
shell: bash
run: |
ref=${GITHUB_REF#refs/heads/}
ref=${ref#refs/pull/}
ref=${ref%/merge}
echo "##[set-output name=branch;]${ref}"
id: extract_branch
- name: Set up JDK
uses: actions/setup-java@v1
with:
Expand Down Expand Up @@ -75,10 +83,14 @@ jobs:
- name: Package application image
run: ${{ matrix.archivePortable }}
shell: bash
- name: Extract branch name
- name: Build and publish snap
if: matrix.os == 'ubuntu-latest' && steps.extract_branch.outputs.branch == 'master'
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/ && mdkir .snapcraft && echo ${SNAPCRAFT_LOGIN_FILE} | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg && snapcraft push --release=beta *.snap
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch
- name: Upload to builds.jabref.org
uses: garygrossgarten/github-action-scp@release
with:
Expand Down
301 changes: 0 additions & 301 deletions snap/plugins/x_gradle.py

This file was deleted.

Loading

0 comments on commit 1c3802e

Please sign in to comment.