-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
18,817 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
name: Releases | ||
|
||
on: push | ||
|
||
jobs: | ||
|
||
deploy: | ||
if: ${{ github.ref == 'refs/heads/main' }} | ||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
- name: Checkout Main | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Foreman | ||
uses: Roblox/setup-foreman@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Foreman Toolchains | ||
run: foreman install | ||
|
||
- name: Install Dependencies | ||
run: wally install | ||
|
||
- name: Create Packages Directory | ||
run: mkdir -p Packages | ||
|
||
- name: Run Selene | ||
run : selene lib | ||
|
||
- name: Build pack.rbxm | ||
run: rojo build -o pack.rbxm pack.project.json | ||
|
||
- name: Upload pack.rbxm as build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: NeoHotbar | ||
path: pack.rbxm | ||
|
||
- name: Get Release from wally.toml | ||
uses: SebRollen/[email protected] | ||
id: read_toml | ||
with: | ||
file: 'wally.toml' | ||
field: 'package.version' | ||
|
||
|
||
- name: Publish to Wally | ||
env: | ||
WALLY_TOKEN: ${{ secrets.WALLY_AUTH_TOKEN }} | ||
run: | | ||
mkdir =p ~/.wally | ||
printf "[tokens]\n\"https://api.wally.run/\" = \"%s\"" "$WALLY_TOKEN" >> ~/.wally/auth.toml | ||
wally publish | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: ${{ steps.read_toml.outputs.value }} | ||
tag_name: ${{ steps.read_toml.outputs.value }} | ||
files: pack.rbxm | ||
generate_release_notes: true | ||
draft: true | ||
|
||
development: | ||
if: ${{ github.ref == 'refs/heads/dev' }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout development | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Foreman | ||
uses: Roblox/setup-foreman@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Install Foreman Toolchains | ||
run: foreman install | ||
|
||
- name: Run Selene | ||
run : selene lib | ||
|
||
- name: Install Dependencies | ||
run: wally install | ||
|
||
- name: Create Packages Directory | ||
run: mkdir -p Packages | ||
|
||
- name: Build test-pack.rbxm | ||
run: rojo build -o test-pack.rbxm pack.project.json | ||
|
||
- name: Upload test-pack.rbxm as build artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: NeoHotbar | ||
path: test-pack.rbxm |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
return require(script.Packages["NeoHotbar"]) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.