diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..c7093cc --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release + +on: + release: + types: [created] + +permissions: + contents: write + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install Rokit + uses: CompeyDev/setup-rokit@v0.1.0 + + - name: Install tools + run: rokit install --no-trust-check + + - name: Build rbxm + run: rojo build default.project.json --output rbx-reface.rbxm + + - name: Upload rbxm to release + uses: softprops/action-gh-release@v2 + with: + files: rbx-reface.rbxm + + - name: Publish to Wally + run: | + mkdir -p ~/.wally + echo "[tokens]" > ~/.wally/auth.toml + echo "\"https://api.wally.run/\" = \"${{ secrets.WALLY_AUTH_TOKEN }}\"" >> ~/.wally/auth.toml + wally publish diff --git a/rokit.toml b/rokit.toml index 654bc45..5d81793 100644 --- a/rokit.toml +++ b/rokit.toml @@ -4,4 +4,5 @@ # New tools can be added by running `rokit add ` in a terminal. [tools] +rojo = "rojo-rbx/rojo@7.4.4" wally = "UpliftGames/wally@0.3.2" diff --git a/wally.toml b/wally.toml index 592f5bd..cf3a9e5 100644 --- a/wally.toml +++ b/wally.toml @@ -1,6 +1,6 @@ [package] name = "secret-rare/rbx-reface" -version = "0.1.0" +version = "0.1.1" registry = "https://github.com/UpliftGames/wally-index" realm = "server"