-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
uninstall-your-browser
committed
Jul 23, 2024
1 parent
a4814f2
commit de1d5d7
Showing
1 changed file
with
13 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,33 +11,24 @@ jobs: | |
version: | ||
name: PyCharm AppImage | ||
runs-on: ubuntu-20.04 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.APPIMAGE_PUB }} | ||
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: Upload artifact | ||
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' }} | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.APP_SHORT_NAME }}.AppImage | ||
path: 'dist' | ||
- name: Release | ||
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' }} | ||
uses: marvinpinto/action-automatic-releases@latest | ||
with: | ||
title: ${{ env.APP_NAME }} AppImage ${{ env.APP_VERSION }} | ||
automatic_release_tag: latest | ||
prerelease: false | ||
files: | | ||
dist/ | ||
repo_token: ${{ secrets.APPIMAGE_PUB }} | ||
|
||
run: gh release upload ${{ env.APP_VERSION }} dist/* --clobber | ||
env: | ||
GH_TOKEN: ${{ github.token }} |