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
name: deb
# The .deb packages for a release. What gets built, checked and attached lives
# in excelano/.github, so every Rust repo in the fleet builds them the same way
# and a correction reaches all of them at once. What stays here is when to run
# and what this repo is called.
#
# cargo-dist creates the release with the default GITHUB_TOKEN and GitHub fires
# no `release: published` for a token-created release, so this is dispatched by
# hand after one:
#
# gh workflow run deb.yml -f tag=v0.1.1
on:
release:
types:
workflow_dispatch:
inputs:
dry_run:
description: 'Build and check the packages but attach nothing - for exercising this against a release that already shipped'
required: false
type: boolean
default: false
tag:
description: 'Tag to build .debs for (e.g., v0.1.1)'
required: true
type: string
permissions:
contents: write
jobs:
deb:
uses: excelano/.github/.github/workflows/deb.yml@main
with:
tag: ${{ github.event.release.tag_name || inputs.tag }}
dry_run: ${{ github.event_name == 'workflow_dispatch' && inputs.dry_run }}