diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 90e726a..3a7cced 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file + files: esptool.js \ No newline at end of file diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml deleted file mode 100644 index 896edaf..0000000 --- a/.github/workflows/release-drafter.yml +++ /dev/null @@ -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 }}