Skip to content

Commit

Permalink
fix: generate correct download on stable releases (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
jolexxa authored Mar 3, 2023
1 parent 0f0c9d4 commit 7841bee
Show file tree
Hide file tree
Showing 8 changed files with 11,987 additions and 12,028 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
with:
# Version must include major, minor, and patch, and be >= 4.0.0
# Pre-release label is optional.
version: 4.0.0-beta16
version: 4.0.0

- name: 🔬 Verify Setup
run: |
Expand Down
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
# Setup Godot

Setup Godot for headless use with macOS, Windows, and Linux CI/CD runners.
[![Chickensoft Badge][chickensoft-badge]][chickensoft-website] [![Discord][discord-badge]][discord]

- ✅ Godot 4 Only.
- ✅ Setup and run Godot on the OS you are developing for.
- ✅ Caches Godot 4 installation for speedier workflows.
Setup Godot for use with .NET on macOS, Windows, and Linux CI/CD runners.

- ✅ Godot 4.x
- ✅ C# supported using .NET version of Godot.
- ✅ Installs Godot directly on the CI/CD runner.
- ✅ Caches Godot installation for speedier workflows.
- ✅ Adds environment variables (`GODOT4`, `GODOT`) to the system path.
- ✅ Installs Godot on the runner — do whatever you want with it afterwards!
- ✅ Runs on macOS Github Actions runner.
- ✅ Runs on Windows Github Actions runner.
- ✅ Runs on Ubuntu Github Actions runner.

> **Godot 3.x and below are not supported.**
Expand Down Expand Up @@ -48,12 +53,12 @@ jobs:
- name: 📦 Restore Dependencies
run: dotnet restore

- uses: chickensoft-games/setup-godot
- uses: chickensoft-games/setup-godot@v1
name: 🤖 Setup Godot
with:
# Version must include major, minor, and patch, and be >= 4.0.0
# Pre-release label is optional.
version: 4.0.0-beta16
version: 4.0.0-beta16 # also valid: 4.0.0.rc1 or 4.0.0, etc

- name: 🔬 Verify Setup
run: |
Expand All @@ -68,3 +73,11 @@ jobs:

# Do whatever you want!
```

<!-- Links -->

<!-- Header -->
[chickensoft-badge]: https://chickensoft.games/images/chickensoft/chickensoft_badge.svg
[chickensoft-website]: https://chickensoft.games
[discord]: https://discord.gg/gSjaPgMmYW
[discord-badge]: https://img.shields.io/badge/Chickensoft%20Discord-%237289DA.svg?style=flat&logo=discord&logoColor=white
6 changes: 3 additions & 3 deletions __tests__/main.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,13 @@ describe('getGodotUrl', () => {
})
test('4.0.0', () => {
expect(getGodotUrl('4.0.0', getPlatform('linux'))).toEqual(
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0_mono_linux_x86_64.zip'
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0-stable_mono_linux_x86_64.zip'
)
expect(getGodotUrl('4.0.0', getPlatform('win32'))).toEqual(
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0_mono_win64.zip'
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0-stable_mono_win64.zip'
)
expect(getGodotUrl('4.0.0', getPlatform('darwin'))).toEqual(
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0_mono_macos.universal.zip'
'https://downloads.tuxfamily.org/godotengine/4.0/mono/Godot_v4.0-stable_mono_macos.universal.zip'
)
})
})
3 changes: 3 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit 7841bee

Please sign in to comment.