From ed177db2be003e9bcbabcca05d1a5353c98d4dc0 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 1 Mar 2023 10:56:39 -0600 Subject: [PATCH] Emojify step names in workflows. Stop publishing to TestPyPi from PR --- .github/workflows/build_khoj_el.yml | 4 ++-- .github/workflows/dockerize.yml | 2 +- .github/workflows/pypi.yml | 11 ++--------- .github/workflows/release.yml | 24 ++++++++++++------------ .github/workflows/test.yml | 8 ++++---- .github/workflows/test_khoj_el.yml | 2 +- 6 files changed, 22 insertions(+), 29 deletions(-) diff --git a/.github/workflows/build_khoj_el.yml b/.github/workflows/build_khoj_el.yml index b7dba2a4..0f5f8792 100644 --- a/.github/workflows/build_khoj_el.yml +++ b/.github/workflows/build_khoj_el.yml @@ -24,13 +24,13 @@ jobs: - name: Set up Python 3.9 uses: actions/setup-python@v1 with: { python-version: 3.9 } - - name: Install + - name: โฌ๏ธ Install Dependencies run: | python -m pip install --upgrade pip sudo apt-get install emacs && emacs --version git clone https://github.com/riscy/melpazoid.git ~/melpazoid pip install ~/melpazoid - - name: Run + - name: ๐ŸŒก๏ธ Validate Khoj.el env: # Khoj recipe from https://github.com/melpa/melpa/pull/8321/files RECIPE: (khoj :fetcher github :repo "debanjum/khoj" :files ("src/interface/emacs/*.el")) diff --git a/.github/workflows/dockerize.yml b/.github/workflows/dockerize.yml index 8c1b1f23..fa68a937 100644 --- a/.github/workflows/dockerize.yml +++ b/.github/workflows/dockerize.yml @@ -36,7 +36,7 @@ jobs: username: ${{ github.repository_owner }} password: ${{ secrets.PAT }} - - name: Build and Push Docker Image + - name: ๐Ÿ“ฆ Build and Push Docker Image uses: docker/build-push-action@v2 with: context: . diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index e7533d62..845f2d62 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -32,7 +32,7 @@ jobs: with: python-version: '3.10' - - name: Install Application + - name: โฌ‡๏ธ Install Application run: python -m pip install --upgrade pip && pip install --upgrade . - name: โš™๏ธ Build Python Package @@ -45,7 +45,7 @@ jobs: # Build PyPi Package pipx run build - - name: ๐Ÿ‘€ Validate Python Package + - name: ๐ŸŒก๏ธ Validate Python Package run: | # Validate PyPi Package pipx run check-wheel-contents dist/*.whl @@ -62,10 +62,3 @@ jobs: uses: pypa/gh-action-pypi-publish@v1.6.4 with: 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/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7c2b7ae8..349ddeba 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ on: jobs: publish_obsidian_plugin: - name: Publish Obsidian Plugin + name: ๐Ÿ’Ž Publish Obsidian Plugin runs-on: ubuntu-latest defaults: run: @@ -27,26 +27,26 @@ jobs: with: node-version: "lts/*" - - name: Build Obsidian Plugin + - name: โš™๏ธ Build Obsidian Plugin run: | yarn yarn run build --if-present - - name: Upload Obsidian Plugin main.js + - name: โซ Upload Obsidian Plugin main.js uses: actions/upload-artifact@v3 with: if-no-files-found: error name: 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 with: if-no-files-found: error name: manifest.json path: src/interface/obsidian/manifest.json - - name: Create Release + - name: ๐ŸŒˆ Create Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: @@ -56,7 +56,7 @@ jobs: src/interface/obsidian/manifest.json publish_desktop_apps: - name: Publish Desktop Apps + name: ๐Ÿ–ฅ๏ธ Publish Desktop Apps strategy: matrix: include: @@ -75,7 +75,7 @@ jobs: with: python-version: '3.9' - - name: Install Dependencies + - name: โฌ๏ธ Install Dependencies shell: bash run: | if [ "$RUNNER_OS" == "Linux" ]; then @@ -84,11 +84,11 @@ jobs: python -m pip install --upgrade pip pip install pyinstaller - - name: Install Khoj App + - name: โฌ‡๏ธ Install Khoj App run: | pip install --upgrade . - - name: Package Khoj App + - name: ๐Ÿ“ฆ Package Khoj App shell: bash run: | # Setup Environment for Reproducible Builds @@ -100,7 +100,7 @@ jobs: mv dist/Khoj.exe dist/khoj_"$GITHUB_REF_NAME"_amd64.exe fi - - name: Create Mac App DMG + - name: ๐Ÿ’ป Create Mac App DMG if: matrix.os == 'macos-latest' run: | # Install Mac DMG Creator @@ -124,7 +124,7 @@ jobs: if: matrix.os == 'ubuntu-latest' with: ruby-version: '3.0' - - name: Create Debian Package + - name: ๐Ÿง Create Debian Package if: matrix.os == 'ubuntu-latest' shell: bash env: @@ -154,7 +154,7 @@ jobs: name: 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 if: startsWith(github.ref, 'refs/tags/') with: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1d743506..4554fcea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -41,16 +41,16 @@ jobs: with: python-version: ${{ matrix.python_version }} - - name: Install Dependencies + - name: โฌ๏ธ Install Dependencies run: | sudo apt update && sudo apt install -y libegl1 python -m pip install --upgrade pip - - name: Install Application + - name: โฌ‡๏ธ Install Application run: pip install --upgrade .[dev] - - name: Validate Application + - name: ๐ŸŒก๏ธ Validate Application run: pre-commit run --hook-stage manual --all - - name: Test Application + - name: ๐Ÿงช Test Application run: pytest diff --git a/.github/workflows/test_khoj_el.yml b/.github/workflows/test_khoj_el.yml index eb1803c1..6efdc646 100644 --- a/.github/workflows/test_khoj_el.yml +++ b/.github/workflows/test_khoj_el.yml @@ -33,7 +33,7 @@ jobs: with: version: ${{ matrix.emacs_version }} - uses: actions/checkout@v3 - - name: Test Khoj.el + - name: ๐Ÿงช Test Khoj.el run: | # Run ERT tests on khoj.el emacs -batch \