Skip to content

Commit 3be8835

Browse files
committed
Release 2.0 - Outlook
1 parent 36e0a99 commit 3be8835

File tree

4 files changed

+98
-172
lines changed

4 files changed

+98
-172
lines changed
Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,38 @@
11
---
2-
name: Release - Outlook
2+
name: Release - Debian and Fedora
33

44
on:
55
workflow_dispatch:
66
inputs:
77
version:
8-
description: 'Version of the deb package'
8+
description: 'Version of the deb and rpm package'
99
required: true
1010

1111
jobs:
12+
Release-GitHub:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: "Checkout Repo"
16+
uses: actions/checkout@v4
17+
18+
- name: Create tag
19+
if: github.ref == 'refs/heads/Mainline'
20+
uses: rickstaa/action-create-tag@v1
21+
with:
22+
tag: "v${{ github.event.inputs.version }}"
23+
24+
- name: Release
25+
if: github.ref == 'refs/heads/main'
26+
uses: softprops/action-gh-release@v2
27+
with:
28+
files: |
29+
${{ github.workspace }}/git-send-outlook
30+
tag_name: "v${{ github.event.inputs.version }}"
31+
draft: false
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1234
Release-Debian:
35+
needs: [Release-GitHub]
1336
runs-on: ubuntu-latest
1437
steps:
1538
- name: "Checkout Repo"
@@ -39,7 +62,7 @@ jobs:
3962
Version: ${{ github.event.inputs.version }}
4063
Section: utils
4164
Priority: optional
42-
Depends: python3-msal, python3-keyring
65+
Depends: python3-msal, python3-keyring, python3-trustme, python3-pyqt6, python3-pyqt6.qtwebengine
4366
Enhances: git
4467
Architecture: all
4568
Maintainer: Aditya Garg <gargaditya08@live.com>
@@ -66,6 +89,7 @@ jobs:
6689
GPG_SIGNING_EMAIL: ${{ secrets.GPG_SIGNING_EMAIL }}
6790
GH_TOKEN: ${{ secrets.PAT }}
6891
Release-Fedora:
92+
needs: [Release-GitHub]
6993
runs-on: ubuntu-latest
7094
steps:
7195
- name: "Checkout Repo"
@@ -78,15 +102,18 @@ jobs:
78102
Name: git-credential-outlook
79103
Version: ${{ github.event.inputs.version }}
80104
Release: 1%{?dist}
81-
Summary: A git credential helper that uses Outlook credentials
105+
Summary: Git credential helper for Microsoft Outlook accounts.
82106
83-
License: MIT
107+
License: Apache-2.0
84108
URL: https://github.com/AdityaGarg8/git-credential-outlook-and-gmail
85109
Source0: %{url}/archive/refs/tags/v${{ github.event.inputs.version }}.tar.gz
86110
87111
BuildArch: noarch
88112
Requires: python-msal
89113
Requires: python-keyring
114+
Requires: python-trustme
115+
Requires: python-pyqt6
116+
Requires: python-pyqt6-webengine
90117
91118
%description
92119
Git credential helper for Microsoft Outlook accounts.
@@ -100,7 +127,7 @@ jobs:
100127
install -D -m0755 git-credential-outlook %{buildroot}%{_bindir}/git-credential-outlook
101128
102129
%files
103-
%license LICENSE.outlook
130+
%license LICENSE
104131
%doc README.md
105132
%{_bindir}/git-credential-outlook
106133
EOF

LICENSE.outlook

Lines changed: 0 additions & 21 deletions
This file was deleted.

README.md

Lines changed: 6 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -23,29 +23,16 @@ It is a simple python script, based on https://github.com/ag91/M365-IMAP. It doe
2323

2424
### All platforms
2525

26-
- Download the python script `git-credential-outlook` from [here](https://raw.githubusercontent.com/AdityaGarg8/git-credential-outlook/refs/heads/main/git-credential-outlook).
27-
- Install `msal` and `keyring` pip modules:
26+
- Download the python script `git-credential-outlook` from [here](https://github.com/AdityaGarg8/git-credential-outlook-and-gmail/releases/latest).
2827

29-
On Ubuntu/Debian run:
28+
- Make sure that the script is [located in the path](https://superuser.com/a/284351/62691) and [is executable](https://askubuntu.com/a/229592/18504).
3029

31-
```bash
32-
sudo apt-get install python3-msal python3-keyring
33-
```
34-
35-
On Fedora run:
36-
37-
```bash
38-
sudo dnf install python-msal python-keyring
39-
```
40-
41-
On other distros:
30+
- Install the required pip modules:
4231

4332
```bash
44-
pip install msal keyring
33+
pip install msal keyring trustme PyQt6 PyQt6-WebEngine
4534
```
4635

47-
- Place the script anywhere in your `$PATH`, like `/usr/local/bin`.
48-
4936
### Linux
5037

5138
#### Ubuntu/Debian
@@ -79,18 +66,10 @@ sudo dnf install -y git-credential-outlook
7966
git credential-outlook --authenticate
8067
```
8168

82-
The output should be something like this:
83-
69+
- You can also add `--device` to authenticate on another device like in case of systems without a GUI.
8470
```bash
85-
user@hostname:~$ git credential-outlook --authenticate
86-
Choose an authentication method:
87-
1. Open your browser and login.
88-
2. Paste a device code manually on a webpage.
89-
Enter 1 or 2:
71+
git credential-outlook --authenticate --device
9072
```
91-
- Here we have 2 methods, clearly mentioned in the above message. You simply have to follow the on-screen instructions after choosing any one.
92-
93-
**Note: The first method if choosen will show an error of certificate not being valid after authentication. This is normal and expected since a self generated SSL certificate has been used to authenticate here. You can safely proceed further here.**
9473

9574
## Usage
9675

0 commit comments

Comments
 (0)