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

Commit

Permalink
Create publish.yml (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxmeel authored Dec 1, 2022
1 parent da940fc commit ed9e8c6
Showing 1 changed file with 58 additions and 0 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: Publish Package

on:
workflow_dispatch:
release:
types: [published]

jobs:
publish-package:
if: ${{ github.events.release.prerelease == false }}
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Checkout Repository
uses: actions/checkout@v2
with:
ref: ${{ github.event.release.tag_name }}

- name: Setup Aftman
uses: ok-nick/[email protected]

- name: Setup Node LTS
uses: actions/setup-node@v2
with:
node-version: lts/*

- name: Report Tool Versions
run: |
aftman -V
aftman list
node -v
npm -v
- name: Install Dependencies
run: |
npm install
wally install
- name: Remove Tests
run: |
find . -name "*.spec.lua" -delete
# - name: Publish to Roblox
# run: rojo upload default.project.json --asset_id "${{ secrets.ASSET_ID }}" --cookie "${{ secrets.ROBLOSECURITY }}"

- name: Publish to Wally
env:
WALLY_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
mkdir -p ~/.wally
printf "[tokens]\n\"https://api.wally.run/\" = \"%s\"" "$WALLY_TOKEN" >> ~/.wally/auth.toml
wally publish
- name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

0 comments on commit ed9e8c6

Please sign in to comment.