Skip to content

Commit

Permalink
ci: add dist workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
subpop committed Dec 2, 2024
1 parent 2d0b921 commit 119cc1e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: dist

on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container:
image: registry.fedoraproject.org/fedora:latest
steps:
- run: dnf install --setopt install_weak_deps=False --assumeyes golang git-core meson 'pkgconfig(bash-completion)' 'pkgconfig(yggdrasil)' 'pkgconfig(dbus-1)' 'pkgconfig(systemd)' 'rpm_macro(forgemeta)'
- uses: actions/checkout@v4
# See https://github.com/mesonbuild/meson/pull/13637
- run: git config --global safe.directory "*"
- run: meson setup -Dvendor=True _build
- run: meson dist -C _build
- uses: softprops/action-gh-release@v2
with:
files: _build/meson-dist/rhc-*.tar.xz*

0 comments on commit 119cc1e

Please sign in to comment.