Skip to content

trying another path #20

trying another path

trying another path #20

Workflow file for this run

name: Build AryaOS Flows package
on:
push:
tags:
- 'v*.*.*'
jobs:
build-deb:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Create package structure
run: |
mkdir -p .debpkg/home/node-red/.node-red
ls -al
ls -alR shared_files/node-red
cp ./shared_files/node-red/aryaos_flows.json .debpkg/home/node-red/.node-red/flows.json
# create DEBIAN directory if you want to add other pre/post scripts
mkdir -p .debpkg/DEBIAN
echo -e "chown node-red:node-red /home/node-red/.node-red/flows.json" > .debpkg/DEBIAN/postinst
chmod +x .debpkg/DEBIAN/postinst
- name: Run build-deb-action from jiro4989
uses: jiro4989/build-deb-action@v3
with:
package: aryaos-flows
package_root: .debpkg
maintainer: [email protected]
version: ${{ github.ref }}
arch: 'arm64'
desc: 'Node-RED flows for AryaOS.'
- uses: actions/upload-artifact@v4
with:
name: artifact-deb
path: |
*.deb
- name: Create Release
id: create_release
uses: actions/create-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Release Asset
id: upload-release-asset
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: |
*.deb
tag: ${{ github.ref }}
overwrite: true
file_glob: true