Skip to content

Commit

Permalink
Use github action
Browse files Browse the repository at this point in the history
  • Loading branch information
suciptoid committed Aug 25, 2021
1 parent e96c1a2 commit 3abe112
Show file tree
Hide file tree
Showing 5 changed files with 65 additions and 41 deletions.
62 changes: 62 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# This is a basic workflow to help you get started with Actions

name: Build AppImage

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Download Postman
run: wget -c https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz
- name: Download AppImageTool
run: |
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
chmod +x appimagetool-*.AppImage
- name: Extract Postman
run: tar zxf postman*.tar.gz

- name: Create Desktop Shortcut
run: |
cp Postman/app/resources/app/assets/icon.png Postman/postman.png
mv Postman/Postman Postman/AppRun
cat > Postman/postman.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=Postman
GenericName=Postman
Exec=./AppRun %U
Terminal=false
Icon=postman
Type=Application
Categories=Network;WebBrowser;
EOF
- 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
- name: Release
uses: softprops/action-gh-release@v1
with:
files: Postman-*.AppImage
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Postman/
*.tar.gz
*.AppImage
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Postman AppImage

[![Build Status](https://travis-ci.org/showcheap/postman-appimage.svg?branch=6.6.1)](https://travis-ci.org/showcheap/postman-appimage)

Postman in single executable binnary
24 changes: 0 additions & 24 deletions build.sh

This file was deleted.

0 comments on commit 3abe112

Please sign in to comment.