-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.13 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build & Release
on:
push:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0
- name: Build
run: |
sudo gem install fpm
sudo mkdir -p /arducam/opt/cams
sudo cp -r * /arducam/opt/cams/
VERSION="0.2-$(date -d '+1 hour' +'%m-%d-%Y--%H-%M-%S')"
fpm -a arm64 -s dir -t deb -n arducam-camera -v "$VERSION" -C /arducam -p openhd_rock5cams_VERSION_ARCH.deb
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}
path: |
*.deb
- name: Push
id: push
uses: cloudsmith-io/action@master
with:
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
command: "push"
format: "deb"
owner: "openhd"
repo: "release"
distro: "any-distro"
release: "any-version"
republish: "true" # needed ONLY if version is not changing
file: "*.deb"