Skip to content

Commit

Permalink
Automate release (#394)
Browse files Browse the repository at this point in the history
* automate release generation

* make shell scripts +x

* add yaml

* rely on gh line ending conventions, simplify buildfiles.lst

* add gitattributes

* set file properties for run scripts to +x

Co-authored-by: Philip Puetsch <[email protected]>
  • Loading branch information
ppuetsch and Philip Puetsch authored Jan 11, 2023
1 parent f8a1936 commit ce601fb
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 34 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
* text=auto eol=lf
*.{sh,[sS][hH]} text eol=lf
*.{pyb} text eol=lf
*.{cmd,[cC][mM][dD]} text eol=crlf
*.{bat,[bB][aA][tT]} text eol=crlf
29 changes: 29 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Release

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: build release archive
run: |
find . -type f -name "*.sh" -exec chmod +x {} \;
tar -czvf venus-data.tar.gz \
--mode='a+rwX' \
--exclude battery_template.py \
--exclude __pycache__ \
--exclude restartservice.sh \
--exclude revov.py \
--exclude test_max17853.py \
conf/serial-starter.d \
etc/dbus-serialbattery/
- name: Release
uses: softprops/action-gh-release@v1
with:
files: venus-data.tar.gz
30 changes: 0 additions & 30 deletions buildfiles.lst

This file was deleted.

4 changes: 0 additions & 4 deletions create_build.sh

This file was deleted.

Empty file modified etc/dbus-serialbattery/disabledriver.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/installlocal.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/installqml.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/installrelease.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/reinstalllocal.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/restoregui.sh
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/service/log/run
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/service/run
100644 → 100755
Empty file.
Empty file modified etc/dbus-serialbattery/start-serialbattery.sh
100644 → 100755
Empty file.

0 comments on commit ce601fb

Please sign in to comment.