CyberChef/.github/workflows/releases.yml
Benjamyn Love 6952c77404
Some checks failed
CodeQL Analysis / Analyze (javascript) (push) Failing after 18s
Master Build, Test & Deploy / main (push) Failing after 2m51s
Releases / main (push) Has been cancelled
Update .github/workflows/releases.yml
Updooted workflow
2023-09-05 21:03:11 -04:00

45 lines
819 B
YAML

name: "Releases"
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
main:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set node version
uses: actions/setup-node@v3
with:
node-version: '18.x'
- name: Install
run: |
npm install
npm run setheapsize
- name: Lint
run: npx grunt lint
- name: Unit Tests
run: |
npm test
npm run testnodeconsumer
- name: Production Build
if: success()
run: npx grunt prod
- name: Upload Release Assets
if: success()
id: upload-release-assets
uses: https://gitea.com/actions/release-action@main
with:
files: |-
file: build/prod/*.zip
api_key: '${{secrets.RELEASE_TOKEN}}'