Skip to content

Commit

Permalink
Merge pull request #5 from ImAvafe/dev
Browse files Browse the repository at this point in the history
CI
  • Loading branch information
ImAvafe authored Dec 11, 2023
2 parents 9b00fe5 + b4a306c commit d1a9bdf
Show file tree
Hide file tree
Showing 13 changed files with 18,829 additions and 63 deletions.
99 changes: 99 additions & 0 deletions .github/workflows/ci.yaml
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 Aftman
uses: ok-nick/setup-aftman@v0
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Aftman Toolchains
run: aftman install

- name: Install Dependencies
run: wally install

- name: Create Packages Directory
run: mkdir -p Packages

- name: Run Selene
run : selene src

- name: Build package rbxm
run: rojo build -o NeoHotbar.rbxm pack.project.json

- name: Upload package rbxm as build artifact
uses: actions/upload-artifact@v3
with:
name: NeoHotbar
path: NeoHotbar.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: NeoHotbar.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 Aftman
uses: ok-nick/setup-aftman@v0
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install Aftman Toolchains
run: aftman install

- name: Run Selene
run : selene src

- 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
25 changes: 0 additions & 25 deletions .github/workflows/release.yaml

This file was deleted.

Binary file modified DemoPlace.rbxl
Binary file not shown.
1 change: 1 addition & 0 deletions Include/Linking.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return require(script.Packages["NeoHotbar"])
1 change: 0 additions & 1 deletion StandaloneBundler.lua

This file was deleted.

12 changes: 12 additions & 0 deletions pack.project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "NeoHotbar",
"tree": {
"$path": "Include/Linking.lua",
"Packages": {
"$path": "Packages",
"NeoHotbar": {
"$path": "src"
}
}
}
}
20 changes: 0 additions & 20 deletions place.project.json

This file was deleted.

Loading

0 comments on commit d1a9bdf

Please sign in to comment.