Create GitHub Actions to build Installer
This commit is contained in:
parent
7689fec0e9
commit
1280dc3d38
3 changed files with 81 additions and 0 deletions
34
.github/workflows/build.yml
vendored
Normal file
34
.github/workflows/build.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
||||||
|
name: Jekyll site CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
release:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
submodules: true
|
||||||
|
- name: Create Build Folder
|
||||||
|
run: "mkdir -p build"
|
||||||
|
- name: Copy files to build folder
|
||||||
|
run: "yes | cp -f *.{js,py,json} build"
|
||||||
|
- name: Minify JavaScript
|
||||||
|
uses: nizarmah/auto-minify@v2.1
|
||||||
|
with:
|
||||||
|
directory: 'build'
|
||||||
|
overwrite: true
|
||||||
|
# Eventually only do this step on release
|
||||||
|
- name: Commit Build Files
|
||||||
|
uses: stefanzweifel/git-auto-commit-action@v4
|
||||||
|
with:
|
||||||
|
repository: 'build'
|
||||||
|
commit_message: "Github Action: JS Build files"
|
||||||
|
branch: ${{ github.ref }}
|
||||||
14
package-lock.json
generated
Normal file
14
package-lock.json
generated
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
{
|
||||||
|
"name": "@adafruit/web-firmware-installer-js",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"lockfileVersion": 3,
|
||||||
|
"requires": true,
|
||||||
|
"packages": {
|
||||||
|
"": {
|
||||||
|
"name": "@adafruit/web-firmware-installer-js",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"license": "MIT",
|
||||||
|
"devDependencies": {}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
33
package.json
Normal file
33
package.json
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
{
|
||||||
|
"name": "@adafruit/web-firmware-installer-js",
|
||||||
|
"publishConfig": {
|
||||||
|
"registry": "https://npm.pkg.github.com"
|
||||||
|
},
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "ESP32 Web-based Firmware Installation Tool for CircuitPython and more",
|
||||||
|
"main": "base_installer.js",
|
||||||
|
"dependencies": {
|
||||||
|
},
|
||||||
|
"devDependencies": {},
|
||||||
|
"scripts": {
|
||||||
|
"test": "echo \"Error: no test specified\" && exit 1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git://github.com/adafruit/web-firmware-installer-js.git"
|
||||||
|
},
|
||||||
|
"keywords": [
|
||||||
|
"CircuitPython",
|
||||||
|
"installer",
|
||||||
|
"install",
|
||||||
|
"install tool",
|
||||||
|
"firmware",
|
||||||
|
"esp32"
|
||||||
|
],
|
||||||
|
"author": "Melissa LeBlanc-Williams",
|
||||||
|
"license": "MIT",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/adafruit/web-firmware-installer-js/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/adafruit/web-firmware-installer-js#readme"
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue