Skip to content

Commit

Permalink
v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrusme committed Jun 7, 2021
1 parent 89e1be6 commit 37d6122
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 15 deletions.
28 changes: 16 additions & 12 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,18 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Prepare environment
run: |
apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
curl 'https://github.com/fwup-home/fwup/releases/download/v1.8.4/fwup_1.8.4_amd64.deb' --output ./fwup_1.8.4_amd64.deb
dpkg -i ./fwup_1.8.4_amd64.deb
- name: Get version
id: get_version
run: |
export VERSION="${GITHUB_REF/refs\/tags\//}"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Prepare environment
run: |
sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl wget
wget 'https://github.com/fwup-home/fwup/releases/download/v1.8.4/fwup_1.8.4_amd64.deb'
sudo dpkg -i ./*.deb
- uses: actions/checkout@v2
- uses: erlef/setup-beam@v1
with:
Expand All @@ -29,6 +29,12 @@ jobs:

- name: Prepare Nerves
run: |
mkdir ~/.ssh
cp ./id_ed25519* ~/.ssh/
chmod 700 ~/.ssh
chmod 644 ~/.ssh/id_ed25519.pub
chmod 600 ~/.ssh/id_ed25519
mix local.hex --force
mix local.rebar --force
mix archive.install --force hex nerves_bootstrap
Expand All @@ -40,20 +46,18 @@ jobs:
run: make release

- name: Pack release
run: tar -czf ./kiwi-${VERSION}.tar.gz kiwi.fw
run: tar -czf ./kiwi.tar.gz kiwi.fw

- name: Generate changelog
run: |
export CHANGELOG=`git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'<li> <a href="http://github.com/mrusme/kiwi/commit/%H">view commit &bull;</a> %s</li> ' --reverse`
echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV
git log $(git tag --sort=-version:refname | head -n 2 | tail -n 1)...${{ github.ref }} --pretty=format:'<li> <a href="http://github.com/mrusme/kiwi/commit/%H">view commit &bull;</a> %s</li> ' --reverse > ${{ github.workflow }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
body: ${CHANGELOG}
body_path: ${{ github.workflow }}-CHANGELOG.txt
files: |
kiwi-${VERSION}.tar.gz
kiwi.tar.gz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_REPOSITORY: my_gh_org/my_gh_repo
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ Mnesia.*
MnesiaCore.*
/kiwi.fw
/kiwi.fw.zip
/Kiwi.paw
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ everything else that has an HTTP API!

## Installation

- Download the latest firmware (`kiwi-VERSION.tar.gz`) from the
- Download the latest firmware (`kiwi.tar.gz`) from the
[releases page](https://github.com/mrusme/kiwi/releases/latest) and unpack
it it: `tar -xzf kiwi-VERSION.tar.gz`
it it: `tar -xzf kiwi.tar.gz`
- Insert the microSD card into the card reader of your computer
- Raw-copy the firmware to your microSD card, e.g. using `dd`:
`sudo dd bs=1m if=./kiwi.fw of=/dev/SDCARD_DEVICE` (where `SDCARD_DEVICE` is
Expand Down
7 changes: 7 additions & 0 deletions id_ed25519
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACA4juoNUQrMB+Npq6I50cLt4bjCPv4GFXW2+1xIBmEoowAAAJjIeXm8yHl5
vAAAAAtzc2gtZWQyNTUxOQAAACA4juoNUQrMB+Npq6I50cLt4bjCPv4GFXW2+1xIBmEoow
AAAECTN9/DTD54oxuwZf8U3fTXqUbtn+E3WWdjR1W8yowSEziO6g1RCswH42mrojnRwu3h
uMI+/gYVdbb7XEgGYSijAAAAEmtpd2lAbG9jYWxob3N0LmxhbgECAw==
-----END OPENSSH PRIVATE KEY-----
1 change: 1 addition & 0 deletions id_ed25519.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDiO6g1RCswH42mrojnRwu3huMI+/gYVdbb7XEgGYSij [email protected]
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ defmodule Kiwi.MixProject do
def project do
[
app: @app,
version: "1.0.1",
version: "1.0.2",
elixir: "~> 1.9",
archives: [nerves_bootstrap: "~> 1.10"],
start_permanent: Mix.env() == :prod,
Expand Down

0 comments on commit 37d6122

Please sign in to comment.