Skip to content

Commit 4480d8d

Browse files
committed
Bump version to 0.4.2 and update GitHub Actions workflow for Homebrew publishing
1 parent 9051eb2 commit 4480d8d

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

.github/workflows/publish.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
# release:
77
# types: [published]
88

9+
permissions:
10+
contents: write
11+
912
jobs:
1013
publish:
1114
runs-on: ubuntu-latest
@@ -21,3 +24,15 @@ jobs:
2124
env:
2225
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2326
run: cargo publish --token $CARGO_REGISTRY_TOKEN
27+
28+
- uses: mislav/bump-homebrew-formula-action@v3
29+
with:
30+
# By default, this will edit the `my_formula.rb` formula in
31+
# homebrew-core to update its "url" field to:
32+
# `https://github.com/OWNER/REPO/archive/refs/tags/<tag-name>.tar.gz`
33+
# The "sha256" formula field will get automatically recomputed.
34+
formula-name: folder-declutter
35+
homebrew-tap: ricardodantas/homebrew-tap
36+
env:
37+
# the personal access token should have "repo" & "workflow" scopes
38+
COMMITTER_TOKEN: ${{ secrets.COMMITTER_TOKEN }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "folder-declutter"
3-
version = "0.4.1"
3+
version = "0.4.2"
44
edition = "2021"
55
authors = ["Ricardo Dantas <ricardodantas@gmail.com>"]
66
description = "Folder Declutter is a command-line and library utility written in Rust that helps you free up disk space by automatically deleting files that haven't been modified in a specified number of days."

0 commit comments

Comments
 (0)