Skip to content

Commit 987f7b5

Browse files
authored
Merge pull request #3 from arienshibani/fix/release-workflow
Fix/release workflow
2 parents 0ad5ec3 + 4d05b3c commit 987f7b5

5 files changed

Lines changed: 72 additions & 33 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
release-please:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: google-github-actions/release-please-action@v4
13+
with:
14+
config-file: .release-please-config.json
15+
skip-github-pull-request: false # Set to true if you want no PRs

‎.release-please-config.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"release-type": "simple",
3+
"changelog-path": "CHANGELOG.md",
4+
"include-v-in-tags": true,
5+
"bump-minor-pre-major": true
6+
}

‎CHANGELOG.md‎

Whitespace-only changes.

‎README.md‎

Lines changed: 50 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -23,62 +23,80 @@ hello:
2323
With the `makeup` plugin, you can now run the `make hello` command from any subdirectory, deep inside the project without navigating back and forth 👇
2424

2525
```bash
26-
# ~/repos/makeup
27-
$ ll
28-
29B Makefile
29-
128B demofolder
30-
3126
# ~/repos/makeup
3227
$ cd demo/level1/level2/level3
3328

3429
# ~/repos/makeup/demofolder/level1/level2/level3
35-
$ make hello
30+
$ make hello # This would otherwise fail
31+
💄 Looking for Makefile's in parent directories...
3632

37-
🧗 cd ..
38-
🧗 cd ..
39-
🧗 cd ..
40-
🧗 cd ..
33+
"Hello, World!" # Found the root Makefile and executed the target.
4134

42-
"Hello, World!"
35+
$ pwd # Returns you back to where you executed the make command.
36+
~/repos/makeup/demo/level1/level2/level3
37+
```
38+
39+
## 🛠️ Configuration
40+
41+
You can customize the behavior of the `makeup` plugin by setting environment variables in your `.zshrc` file.
42+
43+
```sh
44+
# ~/.zshrc
45+
46+
# Configuration
47+
export MAKEUP_CONFIRM=true
48+
export MAKEUP_BASE_DIR="$HOME"
4349

44-
# ~/repos/makeup/demofolder/level1/level2/level3
45-
$
4650
```
4751
52+
* `MAKEUP_CONFIRM`
53+
54+
This variable controls whether you want a confirmation prompt before the script runs. If set to `true`, it will show you the directory where it will run the `make` command.
55+
56+
* `MAKEUP_BASE_DIR`
57+
58+
This variable sets the root directory where the script will stop searching for a `Makefile`. If not set, it defaults to your home directory (`$HOME`). You can set it to any directory you want the script to stop searching at.
59+
60+
4861
## 🔧 Installation
4962
50-
This plugin is still under development. To test it:
63+
### Oh-My-Zsh
5164
52-
### 1. Clone the plugin
65+
```bash
66+
git clone https://github.com/arienshibani/makeup ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/makeup
67+
```
5368
69+
Add to `.zshrc`:
5470
```bash
55-
git clone https://github.com/arienshibani/makeup ~/makeup
71+
plugins=(... makeup)
5672
```
5773
58-
### 2. Source it in your Zsh session
74+
### Antigen
5975
6076
```bash
61-
source ~/makeup/makeup.plugin.zsh
77+
antigen bundle arienshibani/makeup
6278
```
6379
64-
### 3. Configuration
65-
66-
The script supports two environment variables:
80+
### Zinit
6781
68-
```sh
69-
MAKEUP_CONFIRM=false # true / false Whether you want a prompt which shows you which directory you run it in. The answer is stored in the current terminal session.
70-
MAKEUP_BASE_DIR="/" # Root directory where the script will give up.
82+
```bash
83+
zinit light arienshibani/makeup
7184
```
7285
73-
Use as follows:
86+
### zplug
7487
75-
```sh
76-
# ~/.zshrc
88+
```bash
89+
zplug "arienshibani/makeup"
90+
```
7791
78-
# Configuration
79-
export MAKEUP_CONFIRM=true
80-
export MAKEUP_BASE_DIR="$HOME"
92+
### Manual Installation
93+
94+
```bash
95+
# Clone repository
96+
git clone https://github.com/arienshibani/makeup ~/.makeup
8197

82-
# Load the plugin
83-
source ~/path/to/makeup.plugin.zsh
98+
# Add to .zshrc
99+
echo "source ~/.makeup/makeup.plugin.zsh" >> ~/.zshrc
84100
```
101+
102+
After installation, restart your shell or run `source ~/.zshrc`.

‎makeup.plugin.zsh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function make() {
1313
local base="${MAKEUP_BASE_DIR:-"/"}"
1414

1515
# Climb up until we find a Makefile or reach the base directory
16-
echo "🔎 Searching..."
16+
echo "💄 Looking for Makefile in parent directories..."
1717
while [[ ! -e "$dir/Makefile" && "$dir" != "$base" ]]; do
1818
dir=$(dirname "$dir")
1919
done

0 commit comments

Comments
 (0)