-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #640 from rgoldberg/638-release-improvements
Release improvements
- Loading branch information
Showing
59 changed files
with
465 additions
and
1,934 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,27 @@ | ||
# http://editorconfig.org | ||
# https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
indent_size = 4 | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[script/*] | ||
indent_size = 2 | ||
|
||
[*.{yml,yaml}] | ||
[*.json] | ||
indent_size = 2 | ||
|
||
# Use 2 spaces for Ruby files | ||
[{Podfile,Rakefile,script/*,*.{podspec,rb,yml}}] | ||
indent_size = 2 | ||
indent_style = space | ||
max_line_length = 80 | ||
# Trailing spaces have meaning in Markdown | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
|
||
# Use tabs for property lists | ||
[*.plist] | ||
indent_style = tab | ||
|
||
# JSON files contain newlines inconsistently | ||
[*.json] | ||
[*.yml] | ||
indent_size = 2 | ||
insert_final_newline = ignore | ||
|
||
# Makefiles always use tabs for indentation | ||
[Makefile] | ||
indent_style = tab | ||
|
||
# Trailing spaces have meaning in Markdown | ||
[*.md] | ||
trim_trailing_whitespace = false | ||
[script/*] | ||
indent_size = 2 | ||
max_line_length = 80 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# Trailing spaces may be intentional in markdown documents, so these should not | ||
# be removed. | ||
# https://gist.github.com/shaunlebron/746476e6e7a4d698b373 | ||
**/*.md whitespace=-blank-at-eol |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# | ||
# .github/workflows/release-published.yml | ||
# | ||
--- | ||
name: release-published | ||
on: | ||
release: | ||
types: [published] | ||
defaults: | ||
run: | ||
# Force all run commands to not use Rosetta 2 | ||
shell: arch -arm64 /bin/zsh -Negku {0} | ||
jobs: | ||
release-published: | ||
if: ${{!github.event.repository.fork}} | ||
runs-on: macos-15 | ||
steps: | ||
- name: 🚰 Apply pr-pull label to custom tap formula bump PR | ||
env: | ||
GH_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}} | ||
run: | | ||
gh release -R "${GITHUB_REPOSITORY}" download "${GITHUB_REF_NAME}" -p bump.url | ||
gh pr edit "$(<bump.url)" --add-label pr-pull | ||
gh release -R "${GITHUB_REPOSITORY}" delete-asset "${GITHUB_REF_NAME}" bump.url -y | ||
- name: 🍺 Bump homebrew-core formula | ||
if: ${{!github.event.release.prerelease}} | ||
env: | ||
HOMEBREW_GITHUB_API_TOKEN: ${{secrets.HOMEBREW_GITHUB_API_TOKEN}} | ||
run: | | ||
brew bump-formula-pr\ | ||
--tag "${GITHUB_REF_NAME}"\ | ||
--revision "${GITHUB_SHA}"\ | ||
--fork-org "${GITHUB_REPOSITORY_OWNER}"\ | ||
--no-browse\ | ||
--online\ | ||
--strict\ | ||
--verbose\ | ||
mas |
Oops, something went wrong.