This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
uhhhhhhh yeah (2.0.8) #102
Workflow file for this run
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
name: Build GMM | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16.x' | |
cache: 'npm' | |
- run: npm ci | |
- run: npm run build | |
- run: mkdir web-ext-artifacts | |
- run: npm run build-extension | |
- name: Upload Userscript | |
uses: actions/[email protected] | |
with: | |
name: 'gmmaker-userscript' | |
path: 'web-ext-artifacts/gmmaker*.user.js' | |
if-no-files-found: error | |
- run: unzip web-ext-artifacts/game_mode_maker*.zip -d extension | |
- name: Upload Extension | |
uses: actions/[email protected] | |
with: | |
name: 'gmmaker-extension' | |
path: 'extension' | |
if-no-files-found: error | |
- run: zip userscript.zip web-ext-artifacts/gmmaker*.user.js | |
- name: Send userscript to discord channel | |
uses: sinshutu/upload-to-discord@master | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
with: | |
args: userscript.zip | |
- run: mv web-ext-artifacts/game_mode_maker*.zip extension.zip | |
- name: Send extension to discord channel | |
uses: sinshutu/upload-to-discord@master | |
env: | |
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | |
with: | |
args: extension.zip |