Add actions upload release assets

This commit is contained in:
Melissa LeBlanc-Williams 2022-11-04 14:06:49 -07:00
parent 8dcaf7cc3d
commit a0028c7ac9
2 changed files with 6 additions and 20 deletions

View file

@ -13,10 +13,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: install node v18
- name: install node v16
uses: actions/setup-node@v1
with:
node-version: 18
node-version: 16
- name: Install Yarn with NPM
run: npm install -g yarn
- name: yarn install
@ -29,8 +29,8 @@ jobs:
NODE_ENV=production npm exec -- rollup -c
- name: Rename build artifact
run: mv dist/web/index.js esptool.js
- name: upload build artifact
uses: actions/upload-artifact@v3
- name: Upload Assets to the GitHub Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: build-files
path: esptool.js
files: esptool.js

View file

@ -1,14 +0,0 @@
name: Release Drafter
on:
push:
branches:
- main
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}