Do not open a file after cancellation #299
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 Reflash" | |
on: | |
push: | |
branches: | |
- main | |
- enhancement/* | |
tags: | |
- 'v*' | |
env: | |
TERM: xterm-256color | |
jobs: | |
package: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Make filename | |
run: echo "VERSION=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Use tag if tagged | |
if: startsWith(github.ref, 'refs/tags/') | |
run: echo "VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- uses: actions/checkout@v3 | |
- name: Use Node.js '18' | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: install and build usb version | |
working-directory: ./client | |
run: | | |
npm ci | |
npm run build | |
- name: Make archive with version file | |
run: | | |
make build-go | |
- name: Make image | |
run: | | |
sudo apt install debootstrap qemu-user-static u-boot-tools | |
sudo ./mkimage.sh | |
- name: Release if tagged | |
uses: ncipollo/release-action@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
allowUpdates: true | |
artifacts: "reflash-*.img.xz" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
prerelease: true |