Skip to content

Commit b37659c

Browse files
Uses action for GNOME Shell extension upload
Replaces the manual EGO upload process with a dedicated GitHub Action. This simplifies the workflow and leverages a pre-built action for uploading the extension, improving maintainability and reducing the need for custom scripting.
1 parent c208b06 commit b37659c

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,11 @@ jobs:
5050
./SettingsCenter@lauinger-clan.de.shell-extension.zip
5151
5252
- name: EGO Upload
53-
if: env.SHOULD_UPLOAD == 'true'
54-
env:
55-
EGO_USER: ${{ secrets.EGO_USER }}
56-
EGO_PASSWORD: ${{ secrets.EGO_PASSWORD }}
57-
run: |
58-
dbus-run-session -- gnome-extensions upload \
59-
--accept-tos \
60-
--user="$EGO_USER" \
61-
--password="$EGO_PASSWORD" \
62-
./SettingsCenter@lauinger-clan.de.shell-extension.zip
53+
if: env.SHOULD_UPLOAD =='true'
54+
uses: fire-man-x/gnome-shell-extension-uploader@v1
55+
with:
56+
# Using your secret names: EGO_USER and EGO_PASSWORD
57+
gnome_username: ${{ secrets.EGO_USER }}
58+
gnome_password: ${{ secrets.EGO_PASSWORD }}
59+
# Path to your zip created by the shell script
60+
extension_zip_file: ./SettingsCenter@lauinger-clan.de.shell-extension.zip

0 commit comments

Comments
 (0)