From 4836619d8dcd6d9235f7c3f6fa5587b6a90418fc Mon Sep 17 00:00:00 2001 From: Noble_Draconian Date: Sat, 18 Mar 2023 15:55:19 -0400 Subject: [PATCH] Add compatibility with wally (#26) * Ignore temporary files created by wally * Add package config * Add wally * Add package publish action --- .github/workflows/publish-package.yml | 25 +++++++++++++++++++++++++ .gitignore | 4 +++- foreman.toml | 1 + wally.toml | 8 ++++++++ 4 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/publish-package.yml create mode 100644 wally.toml diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml new file mode 100644 index 0000000..8039b27 --- /dev/null +++ b/.github/workflows/publish-package.yml @@ -0,0 +1,25 @@ +name : Publish system packages to registry +on: + release: + types: [published] + +jobs: + package-publish: + name: Publish packages to wally registry + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c + + - name: Setup foreman + uses: rojo-rbx/setup-foreman@62bc697705339a6049f74c9d0ff6d39cffc993e5 + with: + token: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish wally packages + env: + WALLY_AUTH: ${{ secrets.WALLY_AUTH }} + run: | + mkdir -p ~/.wally + echo "$WALLY_AUTH" > ~/.wally/auth.toml + wally publish \ No newline at end of file diff --git a/.gitignore b/.gitignore index ff1e671..ac75174 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,6 @@ /*.rbxlx /*.rbxmx /*.rbxm -/*.rbxl \ No newline at end of file +/*.rbxl +/*.lock +/Packages \ No newline at end of file diff --git a/foreman.toml b/foreman.toml index 36db8a5..da51709 100644 --- a/foreman.toml +++ b/foreman.toml @@ -1,2 +1,3 @@ [tools] rojo = {source = "Roblox/rojo", version = "6.0.0-rc.1"} +wally = {source = "upliftgames/wally", version = "=0.3.1"} \ No newline at end of file diff --git a/wally.toml b/wally.toml new file mode 100644 index 0000000..73dfec2 --- /dev/null +++ b/wally.toml @@ -0,0 +1,8 @@ +[package] +name = "buildthomas/mockdatastoreservice" +description = "Emulation of Roblox's DataStoreService for seamless offline development & testing" +version = "1.0.2" +authors = ["buildthomas"] +realm = "shared" +license = "Apache-2.0" +registry = "https://github.com/UpliftGames/wally-index" \ No newline at end of file