Move to Pages action
parent
e0a6974641
commit
24c08a698b
@ -1,9 +0,0 @@
|
||||
categories:
|
||||
- title: "⬆️ Dependencies"
|
||||
collapse-after: 1
|
||||
labels:
|
||||
- "dependencies"
|
||||
template: |
|
||||
## What's Changed
|
||||
|
||||
$CHANGES
|
||||
@ -1,45 +0,0 @@
|
||||
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
|
||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
||||
|
||||
name: TypeScript Compile Package
|
||||
|
||||
on:
|
||||
release:
|
||||
types: [published]
|
||||
|
||||
jobs:
|
||||
tsc:
|
||||
name: Build from Source
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- name: install node v16
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 16
|
||||
- name: Install Yarn with NPM
|
||||
run: npm install -g yarn
|
||||
- name: yarn install
|
||||
run: yarn install
|
||||
- name: Compile TypeScript
|
||||
run: |
|
||||
set -e
|
||||
rm -rf dist
|
||||
NODE_ENV=production npm exec -- tsc
|
||||
NODE_ENV=production npm exec -- rollup -c
|
||||
- name: Rename build artifact
|
||||
run: mv dist/web/index.js esptool.js
|
||||
- name: Upload Assets to the GitHub Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
with:
|
||||
files: esptool.js
|
||||
- name: Upload binaries to release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
file: esptool.js
|
||||
asset_name: esp_tool.js
|
||||
tag: ${{ github.ref }}
|
||||
overwrite: true
|
||||
body: "This is my release text"
|
||||
Loading…
Reference in New Issue