build: add build & publish workflow
This commit is contained in:
@@ -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
|
||||||
@@ -4,4 +4,5 @@
|
|||||||
# New tools can be added by running `rokit add <tool>` in a terminal.
|
# New tools can be added by running `rokit add <tool>` in a terminal.
|
||||||
|
|
||||||
[tools]
|
[tools]
|
||||||
|
rojo = "rojo-rbx/rojo@7.4.4"
|
||||||
wally = "UpliftGames/wally@0.3.2"
|
wally = "UpliftGames/wally@0.3.2"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "secret-rare/rbx-reface"
|
name = "secret-rare/rbx-reface"
|
||||||
version = "0.1.0"
|
version = "0.1.1"
|
||||||
registry = "https://github.com/UpliftGames/wally-index"
|
registry = "https://github.com/UpliftGames/wally-index"
|
||||||
realm = "server"
|
realm = "server"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user