-
What do you want to achieve? I want to have a custom Rojo CD script for GitHub from this video from @sleitnick that successfully will publish a game file to Roblox with Workspace parts (without having them visible from Visual Studio Code).
-
What is the issue? Whenever I publish my game with the CD workflow using VS Code and GitHub, my baseplate and all other parts are removed (as they aren’t in the
src
folder. -
What solutions have you tried so far? I’ve looked everywhere for a response, and now I’m trying to make this as searchable and visible as possible for any people with this issue in the future.
my src
currently only has ServerScriptService
and StarterPlayerScripts
(this will be expanded later)
My "deploy_staging.yaml" file (which is executed when a push happens on the main branch)
name: Deploy_To_Staging
on:
push:
branches:
- main
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
name: Install Foreman
with:
version: "^1.0.0"
token: ${{ SECRETS.GITHUB_TOKEN }}
- run: rojo build -o game.rbxl
- run: rbxcloud experience publish -f game.rbxl -p 10502858237 -u 3821902738 -t published -a ${{ secrets.API_KEY }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- uses: Roblox/setup-foreman@v1
name: Install Foreman
with:
version: "^1.0.0"
token: ${{ SECRETS.GITHUB_TOKEN }}
- name: Lint
run: |
selene ./src
style:
name: Styling
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: JohnnyMorganz/stylua-action@1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --check ./src
Also, this is sort of a continuation of a previous topic that was solved by sleitnick, but with a different enough problem, that I’ve decided it’s best to move it to another topic to avoid confusion.
This issue is mainly addressed towards sleitnick, but if anyone else can help, that’d obviously be great too
So, how do I bring my Workspace
folder with me on publish? Is it possible?
Thanks