99 runs-on : ubuntu-latest
1010
1111 steps :
12- - name : Prepare environment
13- run : |
14- apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl
15- 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
16- dpkg -i ./fwup_1.8.4_amd64.deb
17-
1812 - name : Get version
1913 id : get_version
2014 run : |
2115 export VERSION="${GITHUB_REF/refs\/tags\//}"
2216 echo "VERSION=$VERSION" >> $GITHUB_ENV
2317
18+ - name : Prepare environment
19+ run : |
20+ sudo apt install build-essential automake autoconf git squashfs-tools ssh-askpass pkg-config curl wget
21+ wget 'https://github.com/fwup-home/fwup/releases/download/v1.8.4/fwup_1.8.4_amd64.deb'
22+ sudo dpkg -i ./*.deb
23+
2424 - uses : actions/checkout@v2
2525 - uses : erlef/setup-beam@v1
2626 with :
2929
3030 - name : Prepare Nerves
3131 run : |
32+ mkdir ~/.ssh
33+ cp ./id_ed25519* ~/.ssh/
34+ chmod 700 ~/.ssh
35+ chmod 644 ~/.ssh/id_ed25519.pub
36+ chmod 600 ~/.ssh/id_ed25519
37+
3238 mix local.hex --force
3339 mix local.rebar --force
3440 mix archive.install --force hex nerves_bootstrap
@@ -40,20 +46,18 @@ jobs:
4046 run : make release
4147
4248 - name : Pack release
43- run : tar -czf ./kiwi-${VERSION} .tar.gz kiwi.fw
49+ run : tar -czf ./kiwi.tar.gz kiwi.fw
4450
4551 - name : Generate changelog
4652 run : |
47- 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 •</a> %s</li> ' --reverse`
48- echo "CHANGELOG=$CHANGELOG" >> $GITHUB_ENV
53+ 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 •</a> %s</li> ' --reverse > ${{ github.workflow }}-CHANGELOG.txt
4954
5055 - name : Release
5156 uses : softprops/action-gh-release@v1
5257 if : startsWith(github.ref, 'refs/tags/')
5358 with :
54- body : ${CHANGELOG}
59+ body_path : ${{ github.workflow }}-CHANGELOG.txt
5560 files : |
56- kiwi-${VERSION} .tar.gz
61+ kiwi.tar.gz
5762 env :
5863 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
59- GITHUB_REPOSITORY : my_gh_org/my_gh_repo
0 commit comments