CyberChef/.github/workflows/releases.yml
Workflow config file is invalid. Please check your config file: yaml: line 39: mapping values are not allowed in this context
Benjamyn Love 1902aaa722
Some checks reported warnings
CodeQL Analysis / Analyze (javascript) (pull_request) Has been cancelled
Pull Requests / main (pull_request) Has been cancelled
Update .github/workflows/releases.yml
2023-09-05 20:57:56 -04:00

45 lines
831 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}}'