Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap GitHub ci #5379

Merged
merged 31 commits into from
Oct 7, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
98aa0ad
Build snap from java package
LyzardKing Oct 1, 2019
9f0da25
add snap to github ci
LyzardKing Oct 2, 2019
f500da2
Use docker snapcraft
LyzardKing Oct 2, 2019
c8f7e1b
Add container to ubuntu matrix item
LyzardKing Oct 2, 2019
6dfe477
move snap workflow to matrix
LyzardKing Oct 2, 2019
2af1721
add matrix to snapbuild
LyzardKing Oct 2, 2019
90439f7
add transfer.sh link
LyzardKing Oct 2, 2019
208539c
Use tar from build/distribution
LyzardKing Oct 2, 2019
8ad8125
Add stable snapcraft
LyzardKing Oct 2, 2019
7deadac
Remove explicit container
LyzardKing Oct 2, 2019
1fd8738
Attempt at a github actions integration
LyzardKing Oct 2, 2019
8eb36dc
Try to make it work...
tobiasdiez Oct 2, 2019
45e25c3
Try to fix ?
tobiasdiez Oct 2, 2019
2b161e0
Merge remote-tracking branch 'upstream/master' into snapGithubCI
LyzardKing Oct 3, 2019
7af1e48
Build without docker
LyzardKing Oct 3, 2019
fa2deba
Build with latest docker
LyzardKing Oct 3, 2019
49e9b11
Add docker image based on bionic
LyzardKing Oct 3, 2019
93211a4
Temporarily revert to version-script
LyzardKing Oct 3, 2019
37d86b1
Uncomment upload to builds.jabref
LyzardKing Oct 3, 2019
e274aca
Make sure to move only jabref snap to build folder
LyzardKing Oct 3, 2019
17b2c30
Update and rename deployment.yml to snap-deployment.yml
Siedlerchr Oct 7, 2019
9ab74db
Update and rename snap-deployment.yml to deployment.yml
tobiasdiez Oct 7, 2019
60112f4
Reenable checks for PRs
tobiasdiez Oct 7, 2019
801dbaf
Temporarily disable master branch check to test
tobiasdiez Oct 7, 2019
b4a27a5
I'm tired...
tobiasdiez Oct 7, 2019
abe96f3
Fix branch name detection for PRs
tobiasdiez Oct 7, 2019
7d951c0
Try to fix branch name detection
tobiasdiez Oct 7, 2019
c711a15
Merge branch 'master' into snapGithubCI
tobiasdiez Oct 7, 2019
c4f3f03
Update deployment.yml
tobiasdiez Oct 7, 2019
ba95997
Update deployment.yml
tobiasdiez Oct 7, 2019
c8f1ae3
Remove on PR
tobiasdiez Oct 7, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This part needs secrets and activations as proposed in #5379 (comment)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@koppor can you have a look here? thanks!

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