Skip to content

Commit

Permalink
9.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
2jammers committed Nov 19, 2024
1 parent f9c4a92 commit 30b6be7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 109 deletions.
37 changes: 1 addition & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,25 +29,12 @@ jobs:
tag: ${{ github.ref_name }}
changelogPath: "docs/changelog.md"

- name: Bump Wally version
id: version-bump
uses: DervexDev/file-version-bumper@v1
with:
path: ./wally.toml

- name: Commit and push
uses: EndBug/add-and-commit@v9
if: ${{ github.ref_name != steps.version-bump.outputs.old_version }}
with:
message: Bump version to ${{ github.ref_name }}
default_author: github_actions

- name: Update tag
if: ${{ github.ref_name != steps.version-bump.outputs.old_version }}
run: |
git tag -f ${{ github.ref_name }}
git push -f --tags
publish-build:
name: Publish Assets
runs-on: ubuntu-latest
Expand Down Expand Up @@ -99,31 +86,9 @@ jobs:
uses: CompeyDev/[email protected]

- name: Log In
env:
WALLY_AUTH: ${{ secrets.WALLY_AUTH_TOKEN }}
run: |
mkdir ~/.wally
printenv WALLY_AUTH > ~/.wally/auth.toml
wally login --token "${{secrets.WALLY_AUTH_TOKEN}}"
- name: Publish
run: |
wally publish
publish-announcement:
name: Publish Announcement
runs-on: ubuntu-latest
needs: [publish-package, publish-build]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Rokit
uses: CompeyDev/[email protected]

- name: Send webhook
env:
WEBHOOK_URL: ${{ secrets.UPDATE_WEBHOOK_URL }}
run: |
PROJECT="${{ github.repository }}"
VERSION="${{ github.ref_name }}"
lune run .lune/discord.luau "$WEBHOOK_URL" "announcement" "$PROJECT" "$VERSION"
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mkdocs
# Moonwave
venv

# Wally
Expand All @@ -8,3 +8,4 @@ wally.lock

# Argon
sourcemap.json

61 changes: 0 additions & 61 deletions .lune/discord.luau

This file was deleted.

5 changes: 3 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
"luau-lsp.require.mode": "relativeToFile",
"luau-lsp.require.directoryAliases": {
"@lune/": "~/.lune/.typedefs/0.8.6/"
}
}
},
"stylua.targetReleaseVersion": "latest"
}
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Fixes an issue with initiation ([#28](https://github.com/luminlabsdev/framework/issues/28))

## [9.0.0] - 2024-10-10

### Fixed
Expand Down
3 changes: 1 addition & 2 deletions rokit.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@
[tools]
wally = "UpliftGames/[email protected]"
wally-package-types = "johnnymorganz/[email protected]"
stylua = "johnnymorganz/[email protected]"
lune = "lune-org/[email protected]"
stylua = "johnnymorganz/[email protected]"
rojo = "rojo-rbx/[email protected]"
13 changes: 7 additions & 6 deletions src/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -88,26 +88,27 @@ local function LoadDefaultLifecycle(lifecycle: Types.Lifecycle<...any>)
end)
end

-- Starts/inits a list of controllers internally, and starts cycles within those
-- Starts/inits a list of controllers internally, and starts lifecycles within those
local function LoadControllersAsync(controllers: { Types.Controller<any> })
local UsedControllers = {}
local InitiatedControllers = {}

for _, controller in controllers do
-- Check if the controller uses any dependencies
if controller.Uses and type(controller.Uses) == "table" then
table.freeze(controller.Uses)
-- Call init on used dependencies
for _, usedController in controller.Uses do
if usedController["Init"] then
if usedController["Init"] and not table.find(InitiatedControllers, usedController) then
LoadController(usedController.Init, "Init")
table.insert(UsedControllers, usedController)
table.insert(InitiatedControllers, usedController)
end
end
end

-- Call init on non-used dependencies
if controller.Init and not table.find(UsedControllers, controller) then
if controller.Init and not table.find(InitiatedControllers, controller) then
LoadController(controller.Init, "Init")
table.insert(InitiatedControllers, controller)
end

-- Call start on all dependencies
Expand Down Expand Up @@ -181,7 +182,7 @@ export type Controller<T> = Types.Controller<T>

return table.freeze({
-- Version
version = "9",
version = "9.0.1",

-- Starter
Start = Start,
Expand Down
2 changes: 1 addition & 1 deletion wally.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "lumin/framework"
description = "A lightning fast & amazing game framework for Roblox"
version = "9.0.0"
version = "9.0.1"
license = "MIT"
registry = "https://github.com/UpliftGames/wally-index"
realm = "shared"
Expand Down

0 comments on commit 30b6be7

Please sign in to comment.