Build app package #14
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 app package | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
name: Build app package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '16.x' | |
- name: Install project | |
run: npm install | |
- name: Run lint | |
run: npm run lint | |
- name: Check code formatting | |
run: npm run format-check | |
- name: Download resources | |
run: | | |
bash levels.sh ${{ secrets.RES_HOST }} ${{ secrets.RES_PATH }} | |
- name: Build package | |
run: bash build.sh | |
- name: Publish GitHub release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
apps/*.spa | |
apps/*.zip | |
apps/*.js | |
- name: Upload workflow artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: beatsaber | |
path: | | |
apps/*.spa | |
apps/*.zip | |
apps/*.js |