Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
Fix workflows
Browse files Browse the repository at this point in the history
[release]
  • Loading branch information
cxmeel committed Aug 11, 2021
1 parent 5541dca commit 7dc87e0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 11 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Get Project Name
- name: Set Project Name
run: |
PROJECT_NAME=`grep -Po '(?<=^name = ")([^"]+)' wally.toml`
PROJECT_NAME="colour-utils"
echo "PROJECT_NAME=$PROJECT_NAME" >> $GITHUB_ENV
- name: Get Current Version
Expand Down Expand Up @@ -78,6 +78,3 @@ jobs:
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload to Roblox
run: rojo upload default.project.json --asset_id 6573728888 --cookie ${{ secrets.ROBLOSECURITY }}
39 changes: 33 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish to NPM
name: Publish Release

on:
release:
Expand All @@ -8,12 +8,39 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- name: Checkout Repository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Setup Node 14.x
uses: actions/setup-node@v1
with:
node-version: 14
- run: npm i -g roblox-ts
- run: npm i
- uses: JS-DevTools/npm-publish@v1

- name: Install Roblox-TS
run: |
npm i -g roblox-ts
npm i
- name: Setup Toolchain
uses: Roblox/setup-foreman@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Set Project Name
run: |
PROJECT_NAME="colour-utils"
echo "PROJECT_NAME=$PROJECT_NAME" >> $GITHUB_ENV
- name: Build Project
run: |
rojo build default.project.json -o dist/${{ env.PROJECT_NAME }}.rbxm
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Upload to Roblox
run: rojo upload default.project.json --asset_id 6573728888 --cookie ${{ secrets.ROBLOSECURITY }}

0 comments on commit 7dc87e0

Please sign in to comment.