Skip to content

Commit

Permalink
Automate release (Louisvdw#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]>

(cherry picked from commit ce601fb)
  • Loading branch information
ppuetsch authored and Philip Puetsch committed Jan 11, 2023
1 parent b84aa15 commit df187c2
Show file tree
Hide file tree
Showing 12 changed files with 29 additions and 35 deletions.
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.

5 changes: 0 additions & 5 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 df187c2

Please sign in to comment.