mirror of https://github.com/dswd/vpncloud.git
59 lines
1.5 KiB
YAML
59 lines
1.5 KiB
YAML
on:
|
|
release:
|
|
types: [created]
|
|
name: Build packages
|
|
jobs:
|
|
deb:
|
|
name: "Build deb packages"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run builder
|
|
uses: ./.github/actions/build-deb
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: packages
|
|
path: dist
|
|
- name: Upload artifacts
|
|
uses: skx/github-action-publish-binaries@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
args: 'dist/*.deb'
|
|
rpm:
|
|
name: "Build rpm packages"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run builder
|
|
uses: ./.github/actions/build-rpm
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: packages
|
|
path: dist
|
|
- name: Upload artifacts
|
|
uses: skx/github-action-publish-binaries@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
args: 'dist/*.rpm'
|
|
static:
|
|
name: "Build static binaries"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Run builder
|
|
uses: ./.github/actions/build-static
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: packages
|
|
path: dist
|
|
- name: Upload artifacts
|
|
uses: skx/github-action-publish-binaries@master
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
args: 'dist/*' |