version 2.1.4 #9
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/release | |
on: | |
push: | |
## Run on tags starting with `v*` | |
tags: | |
- 'v*' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
release: | |
continue-on-error: false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Node.js | |
uses: actions/setup-node@v2-beta | |
with: | |
node-version: '18' | |
- name: "Install dependencies for build" | |
run: "npm install" | |
- name: "Lint" | |
run: "npm run lint" | |
- name: "Run build" | |
run: "npm run build" | |
# I think otherwise a the bundles get excluded | |
- name: "Delete gitignore" | |
run: "rm .gitignore" | |
- name: 'Zip folder' | |
uses: thedoctor0/[email protected] | |
with: | |
type: 'zip' | |
filename: "agregore-renderer-${{github.ref_name}}.zip" | |
exclusions: '*.git* /*node_modules/* .*' | |
- name: 'Upload Release' | |
uses: ncipollo/[email protected] | |
with: | |
artifacts: "agregore-renderer-${{github.ref_name}}.zip" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
draft: true | |
allowUpdates: true |