Skip to content

Commit

Permalink
improve: prepare github actions workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yossTheDev committed Jul 9, 2023
1 parent bbeb0d8 commit 3f8b1e3
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 2 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/buid.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<h1 align="center">yala</h1>

![screenshot](/img/banner.png)
<p align="center"> The Most Prettier, TUI based 📦 Package Manager for <b>Arch Linux</b> and <b>Derivates</b>. Inpired by Nala</p>
<p align="center"> The Most Prettier, TUI based 📦 Package Manager for <b>Arch Linux</b> and <b>Derivates</b>. Inpired by <a href="https://github.com/volitank/nala">Nala</a></p>

<div align="center">
<img alt="GitHub" src="https://img.shields.io/github/license/yossthedev/yala?style=for-the-badge">
<img alt="GitHub" src="https://img.shields.io/github/license/yossthedev/yala?style=for-the-badge">
<img alt="GitHub" src="https://img.shields.io/github/license/yossthedev/yala?style=for-the-badge">
</div>

```monospace
⚠️ yala is currently under development so expect drastic changes and some bugs
Expand Down Expand Up @@ -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
Expand Down
27 changes: 27 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -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!!!"

0 comments on commit 3f8b1e3

Please sign in to comment.