Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 1 addition & 26 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,29 +138,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash

winget:
name: Publish to WinGet
runs-on: windows-latest
needs: publish-release
permissions:
contents: read
pull-requests: write
steps:
- name: Setup WingetCreate
run: curl.exe -L https://aka.ms/wingetcreate/latest -o wingetcreate.exe
shell: pwsh

- name: Publish to WinGet
run: |
$version = "${{ github.ref_name }}"

$urls = @(
"https://github.com/GDQuest/GDScript-formatter/releases/download/$version/gdscript-formatter-$version-windows-x86_64.exe.zip|x64",
"https://github.com/GDQuest/GDScript-formatter/releases/download/$version/gdscript-formatter-$version-windows-aarch64.exe.zip|arm64"
)

.\wingetcreate.exe update GDQuest.GDScript.Formatter --version $version --urls $urls --submit
env:
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.WINGET_PAT }}
shell: pwsh

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,9 @@ You can find binaries for Windows, macOS, and Linux in the [releases tab](https:

**Alternative sources:**

- **Arch Linux:** Community maintained AUR Package [gdscript-formatter-bin](https://aur.archlinux.org/packages/gdscript-formatter-bin).
- **Windows:** Community maintained Scoop package (`scoop install` [`extras/gdscript-formatter`](https://github.com/ScoopInstaller/Extras/blob/master/bucket/gdscript-formatter.json))
- **Arch Linux:** Community maintained AUR package [gdscript-formatter-bin](https://aur.archlinux.org/packages/gdscript-formatter-bin).
- **Windows:** Community maintained Scoop package (`scoop install` [`extras/gdscript-formatter`](https://github.com/ScoopInstaller/Extras/blob/master/bucket/gdscript-formatter.json)).
- **Windows:** Community maintained WinGet package (`winget install` `GDQuest.GDScript.Formatter`).
- **GitHub Actions:** Community maintained [setup-gdscript-formatter](https://github.com/Modern-Arts-Research-Stories-Next/setup-gdscript-formatter) action for installing the formatter in GitHub Actions workflows.

To recursively format all GDScript files in the current folder, run:
Expand Down
Loading