-
Notifications
You must be signed in to change notification settings - Fork 1
67 lines (64 loc) · 1.99 KB
/
development.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
on:
push:
branches:
- main
permissions:
contents: write
packages: write
jobs:
dev-build-linux-amd64:
name: dev build linux/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
id: go_build
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: linux
goarch: amd64
compress_assets: false
executable_compression: upx
project_path: ./cmd/pbs_plus
overwrite: true
release_tag: dev
- name: pre-packaging script
env:
BINARY_PATH: ${{ steps.go_build.outputs.release_asset_dir }}
run: ./build/package/pre-packaging.sh
- uses: jiro4989/build-deb-action@v3
with:
package: ${{ github.event.repository.name }}
package_root: build/package/debian
maintainer: Son Roy Almerol <[email protected]>
version: 'refs/tags/v0.0.0'
arch: 'amd64'
depends: 'proxmox-backup (>= 3.2), proxmox-backup-client (>= 3.2.5), rclone, fuse3'
desc: 'PBS Plus is a project focused on extending Proxmox Backup Server (PBS) with advanced features to create a more competitive backup solution'
homepage: 'https://github.com/${{ github.repository }}'
- name: Pre-release dev build
uses: softprops/action-gh-release@v1
with:
tag_name: dev
files: ./*.deb
prerelease: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
dev-build-windows-amd64-agent:
name: dev build agent windows/amd64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: wangyoucao577/go-release-action@v1
id: go_build
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
goos: windows
goarch: amd64
compress_assets: false
executable_compression: upx
binary_name: pbs-plus-agent
project_path: ./cmd/windows_agent
ldflags: -H=windowsgui
overwrite: true
release_tag: dev