From 3f8b1e3eb333e1267ac8f9ee966dd4bfba3d363c Mon Sep 17 00:00:00 2001 From: Yoannis Sanchez Soto Date: Sun, 9 Jul 2023 14:16:19 -0400 Subject: [PATCH] improve: prepare github actions workflows --- .github/workflows/buid.yml | 56 ++++++++++++++++++++++++++++++++++++++ README.md | 8 ++++-- install.sh | 27 ++++++++++++++++++ 3 files changed, 89 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/buid.yml create mode 100644 install.sh diff --git a/.github/workflows/buid.yml b/.github/workflows/buid.yml new file mode 100644 index 0000000..05071ff --- /dev/null +++ b/.github/workflows/buid.yml @@ -0,0 +1,56 @@ +name: Build and Release +on: + create: + tags: + - v* + +jobs: + build: + runs-on: arch-latest + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Install Nuitka + run: | + sudo pacman -Syu + sudo pacman -S python python-pip python wheel + python -m pip install nuitka + - name: Install Protry + run: | + curl -sSL https://install.python-poetry.org | python3 - + - name: Prepare Enviroment + run: | + poetry install + - name: Building... + run: | + python -m nuitka main.py --standalone --onefile --output-filename=yala --output-dir=dist/ + - name: Compressing.... + run: | + cd dist + tar -cf yala.tar.gz yala --auto-compress + release: + needs: build + runs-on: arch-latest + steps: + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + body: | + This is a Release + draft: true + prerelease: false + - name: Upload Release Asset + id: upload_release_asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./dist/yala.tar.gz + asset_name: yala.tar.gz + asset_content_type: application/octet-stream diff --git a/README.md b/README.md index 1a30984..2aa059a 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@

yala

![screenshot](/img/banner.png) -

The Most Prettier, TUI based 📦 Package Manager for Arch Linux and Derivates. Inpired by Nala

+

The Most Prettier, TUI based 📦 Package Manager for Arch Linux and Derivates. Inpired by Nala

+
GitHub +GitHub +GitHub +
```monospace ⚠️ yala is currently under development so expect drastic changes and some bugs @@ -36,7 +40,7 @@ poetry install ### Building with **PyInstaller** -Tested with **Python 3.11** and PyInstaller **5.13.0** +Tested with **Python 3.11** and [PyInstaller](https://pyinstaller.org) **5.13.0** ``` sh bash build.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..d212de7 --- /dev/null +++ b/install.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# Yala Version +VERSION="v0.1.0" + +# Yala Filename +FILENAME="yala-$VERSION.tar.gz" + +# Get latest Yala Release from GitHub +URL="https://github.com/yossTheDev/yala/releases/download/$VERSION/$FILENAME" + +# Download +echo Downloadig yala $VERSION +wget $URL + +# Descompress File +tar -xzf $FILENAME + +# Copy yala to user/bin/ directory +sudo cp yala /usr/bin + +# Delete artifacts +rm yala +rm $FILENAME + +# Mostramos un mensaje de éxito +echo "yala is suceffuly installed. Contratulations!!!" \ No newline at end of file