CyberChef/.github/workflows/releases.yml
Workflow config file is invalid. Please check your config file: yaml: line 10: did not find expected key
Benjamyn Love 7ee52098c9
Some checks failed
CodeQL Analysis / Analyze (javascript) (push) Failing after 19s
Master Build, Test & Deploy / main (push) Has been cancelled
Update .github/workflows/releases.yml
2023-09-05 21:11:51 -04:00

50 lines
939 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: setup go
uses: https://github.com/actions/setup-go@v4
with:
go-version: '>=1.20.1'
- 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}}'