-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 1.04 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Build AppImage
on:
workflow_dispatch:
schedule:
- cron: "0 0 */2 * *"
push:
branches:
- "master"
jobs:
version:
name: PyCharm AppImage
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build
id: build
uses: uninstall-your-browser/[email protected]
with:
version_url: "https://data.services.jetbrains.com/products/download?code=PCC&platform=linux"
version_file: "product-info.json"
version_bash: "jq -r .version"
version_icon: "pycharm.svg"
version_directory: "opt/pycharm"
- name: Create release
if: ${{ env.APP_UPDATE_NEEDED == 'true' }}
run: gh release create ${{ env.APP_VERSION }} -t "${{ env.APP_NAME }} AppImage ${{ env.APP_VERSION }}"
env:
GH_TOKEN: ${{ github.token }}
- name: Upload binaries
if: ${{ env.APP_UPDATE_NEEDED == 'true' }}
run: gh release upload ${{ env.APP_VERSION }} dist/* --clobber
env:
GH_TOKEN: ${{ github.token }}