2020-04-17 20:06:09 +00:00
|
|
|
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
|
|
|
|
with:
|
2020-10-09 19:18:12 +00:00
|
|
|
rust: '1.47.0'
|
2020-04-17 20:06:09 +00:00
|
|
|
- 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
|
|
|
|
with:
|
2020-10-09 19:18:12 +00:00
|
|
|
rust: '1.47.0'
|
2020-04-17 20:06:09 +00:00
|
|
|
- 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'
|