a0ae5a6868
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
55 lines
1.5 KiB
YAML
55 lines
1.5 KiB
YAML
name: Debian Packages
|
|
permissions: read-all
|
|
on:
|
|
push:
|
|
tags:
|
|
- '[0-9]+.[0-9]+.[0-9]+'
|
|
pull_request:
|
|
branches: [ main ]
|
|
jobs:
|
|
test-packages:
|
|
if: github.event.pull_request
|
|
name: Test Packages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
id: buildx
|
|
with:
|
|
install: true
|
|
- name: Available Docker Platforms
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
|
- name: Build Debian Packages
|
|
run: make debian-packages
|
|
- name: List generated files
|
|
run: ls -l *.deb
|
|
publish-packages:
|
|
if: ${{ ! github.event.pull_request }}
|
|
name: Publish Packages
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
id: buildx
|
|
with:
|
|
install: true
|
|
- name: Available Docker Platforms
|
|
run: echo ${{ steps.buildx.outputs.platforms }}
|
|
- name: Build Debian Packages
|
|
run: make debian-packages
|
|
- name: List generated files
|
|
run: ls -l *.deb
|
|
- name: Upload packages to repository
|
|
env:
|
|
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
|
|
run: for f in *.deb; do curl -F package=@$f https://$FURY_TOKEN@push.fury.io/miniflux/; done
|