Emojify step names in workflows. Stop publishing to TestPyPi from PR

This commit is contained in:
Debanjum Singh Solanky 2023-03-01 10:56:39 -06:00
parent 7ad251b8ef
commit ed177db2be
6 changed files with 22 additions and 29 deletions

View file

@ -24,13 +24,13 @@ jobs:
- name: Set up Python 3.9 - name: Set up Python 3.9
uses: actions/setup-python@v1 uses: actions/setup-python@v1
with: { python-version: 3.9 } with: { python-version: 3.9 }
- name: Install - name: ⏬️ Install Dependencies
run: | run: |
python -m pip install --upgrade pip python -m pip install --upgrade pip
sudo apt-get install emacs && emacs --version sudo apt-get install emacs && emacs --version
git clone https://github.com/riscy/melpazoid.git ~/melpazoid git clone https://github.com/riscy/melpazoid.git ~/melpazoid
pip install ~/melpazoid pip install ~/melpazoid
- name: Run - name: 🌡️ Validate Khoj.el
env: env:
# Khoj recipe from https://github.com/melpa/melpa/pull/8321/files # Khoj recipe from https://github.com/melpa/melpa/pull/8321/files
RECIPE: (khoj :fetcher github :repo "debanjum/khoj" :files ("src/interface/emacs/*.el")) RECIPE: (khoj :fetcher github :repo "debanjum/khoj" :files ("src/interface/emacs/*.el"))

View file

@ -36,7 +36,7 @@ jobs:
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.PAT }} password: ${{ secrets.PAT }}
- name: Build and Push Docker Image - name: 📦 Build and Push Docker Image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
context: . context: .

View file

@ -32,7 +32,7 @@ jobs:
with: with:
python-version: '3.10' python-version: '3.10'
- name: Install Application - name: ⬇️ Install Application
run: python -m pip install --upgrade pip && pip install --upgrade . run: python -m pip install --upgrade pip && pip install --upgrade .
- name: ⚙️ Build Python Package - name: ⚙️ Build Python Package
@ -45,7 +45,7 @@ jobs:
# Build PyPi Package # Build PyPi Package
pipx run build pipx run build
- name: 👀 Validate Python Package - name: 🌡️ Validate Python Package
run: | run: |
# Validate PyPi Package # Validate PyPi Package
pipx run check-wheel-contents dist/*.whl pipx run check-wheel-contents dist/*.whl
@ -62,10 +62,3 @@ jobs:
uses: pypa/gh-action-pypi-publish@v1.6.4 uses: pypa/gh-action-pypi-publish@v1.6.4
with: with:
password: ${{ secrets.PYPI_API_KEY }} password: ${{ secrets.PYPI_API_KEY }}
- name: 📦 Publish Python Package to Test PyPI
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}
uses: pypa/gh-action-pypi-publish@v1.6.4
with:
password: ${{ secrets.PYPI_API_KEY }}
repository_url: https://test.pypi.org/legacy/

View file

@ -13,7 +13,7 @@ on:
jobs: jobs:
publish_obsidian_plugin: publish_obsidian_plugin:
name: Publish Obsidian Plugin name: 💎 Publish Obsidian Plugin
runs-on: ubuntu-latest runs-on: ubuntu-latest
defaults: defaults:
run: run:
@ -27,26 +27,26 @@ jobs:
with: with:
node-version: "lts/*" node-version: "lts/*"
- name: Build Obsidian Plugin - name: ⚙️ Build Obsidian Plugin
run: | run: |
yarn yarn
yarn run build --if-present yarn run build --if-present
- name: Upload Obsidian Plugin main.js - name: Upload Obsidian Plugin main.js
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
if-no-files-found: error if-no-files-found: error
name: main.js name: main.js
path: src/interface/obsidian/main.js path: src/interface/obsidian/main.js
- name: Upload Obsidian Plugin manifest.json - name: Upload Obsidian Plugin manifest.json
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
if-no-files-found: error if-no-files-found: error
name: manifest.json name: manifest.json
path: src/interface/obsidian/manifest.json path: src/interface/obsidian/manifest.json
- name: Create Release - name: 🌈 Create Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:
@ -56,7 +56,7 @@ jobs:
src/interface/obsidian/manifest.json src/interface/obsidian/manifest.json
publish_desktop_apps: publish_desktop_apps:
name: Publish Desktop Apps name: 🖥️ Publish Desktop Apps
strategy: strategy:
matrix: matrix:
include: include:
@ -75,7 +75,7 @@ jobs:
with: with:
python-version: '3.9' python-version: '3.9'
- name: Install Dependencies - name: ⏬️ Install Dependencies
shell: bash shell: bash
run: | run: |
if [ "$RUNNER_OS" == "Linux" ]; then if [ "$RUNNER_OS" == "Linux" ]; then
@ -84,11 +84,11 @@ jobs:
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller pip install pyinstaller
- name: Install Khoj App - name: ⬇️ Install Khoj App
run: | run: |
pip install --upgrade . pip install --upgrade .
- name: Package Khoj App - name: 📦 Package Khoj App
shell: bash shell: bash
run: | run: |
# Setup Environment for Reproducible Builds # Setup Environment for Reproducible Builds
@ -100,7 +100,7 @@ jobs:
mv dist/Khoj.exe dist/khoj_"$GITHUB_REF_NAME"_amd64.exe mv dist/Khoj.exe dist/khoj_"$GITHUB_REF_NAME"_amd64.exe
fi fi
- name: Create Mac App DMG - name: 💻 Create Mac App DMG
if: matrix.os == 'macos-latest' if: matrix.os == 'macos-latest'
run: | run: |
# Install Mac DMG Creator # Install Mac DMG Creator
@ -124,7 +124,7 @@ jobs:
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
with: with:
ruby-version: '3.0' ruby-version: '3.0'
- name: Create Debian Package - name: 🐧 Create Debian Package
if: matrix.os == 'ubuntu-latest' if: matrix.os == 'ubuntu-latest'
shell: bash shell: bash
env: env:
@ -154,7 +154,7 @@ jobs:
name: khoj_${{github.ref_name}}_amd64.${{matrix.extension}} name: khoj_${{github.ref_name}}_amd64.${{matrix.extension}}
path: dist/khoj_${{github.ref_name}}_amd64.${{matrix.extension}} path: dist/khoj_${{github.ref_name}}_amd64.${{matrix.extension}}
- name: Release - name: 🌈 Release
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
with: with:

View file

@ -41,16 +41,16 @@ jobs:
with: with:
python-version: ${{ matrix.python_version }} python-version: ${{ matrix.python_version }}
- name: Install Dependencies - name: ⏬️ Install Dependencies
run: | run: |
sudo apt update && sudo apt install -y libegl1 sudo apt update && sudo apt install -y libegl1
python -m pip install --upgrade pip python -m pip install --upgrade pip
- name: Install Application - name: ⬇️ Install Application
run: pip install --upgrade .[dev] run: pip install --upgrade .[dev]
- name: Validate Application - name: 🌡️ Validate Application
run: pre-commit run --hook-stage manual --all run: pre-commit run --hook-stage manual --all
- name: Test Application - name: 🧪 Test Application
run: pytest run: pytest

View file

@ -33,7 +33,7 @@ jobs:
with: with:
version: ${{ matrix.emacs_version }} version: ${{ matrix.emacs_version }}
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Test Khoj.el - name: 🧪 Test Khoj.el
run: | run: |
# Run ERT tests on khoj.el # Run ERT tests on khoj.el
emacs -batch \ emacs -batch \