From 3abe112cdb941b3a9df2d1cba91c316b9c23a551 Mon Sep 17 00:00:00 2001 From: Sucipto Date: Wed, 25 Aug 2021 10:20:14 +0700 Subject: [PATCH] Use github action --- .github/workflows/build.yaml | 62 ++++++++++++++++++++++++++++++++++++ .gitignore | 3 ++ .travis.yml | 15 --------- README.md | 2 -- build.sh | 24 -------------- 5 files changed, 65 insertions(+), 41 deletions(-) create mode 100644 .github/workflows/build.yaml create mode 100644 .gitignore delete mode 100644 .travis.yml delete mode 100644 build.sh diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml new file mode 100644 index 0000000..6296fec --- /dev/null +++ b/.github/workflows/build.yaml @@ -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 < Postman/postman.desktop <