Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • 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.
35 changes: 13 additions & 22 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit de1d5d7

Please sign in to comment.