Skip to content

Commit

Permalink
Upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
suciptoid committed Aug 25, 2021
1 parent 3abe112 commit c531aca
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,13 @@ jobs:
- name: Extract Postman
run: tar zxf postman*.tar.gz
id: postman-version
run: |
tar zxf postman*.tar.gz
echo "::set-output name=VERSION::$(cat ./Postman/app/resources/app/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')"
- name: Postman Version
run: echo "Postman Version is ${{ steps.postman-version.outputs.VERSION }}"

- name: Create Desktop Shortcut
run: |
Expand All @@ -53,10 +59,15 @@ jobs:
- name:
run: |
./appimagetool-*.AppImage --appimage-extract
VER=$(cat ./Postman/app/resources/app/package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[",]//g' | tr -d '[[:space:]]')
VERSION=$VER ARCH=x86_64 ./squashfs-root/AppRun Postman
VERSION=${{ steps.postman-version.outputs.VERSION }} ARCH=x86_64 ./squashfs-root/AppRun Postman
- uses: actions/upload-artifact@v2
with:
name: Postman-${{ steps.postman-version.outputs.VERSION }}
path: Postman-*.AppImage

- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: Postman-*.AppImage

0 comments on commit c531aca

Please sign in to comment.