From ff60315e8161af6f0fa7619cbd375545b5e5a1fe Mon Sep 17 00:00:00 2001 From: Link Dupont Date: Mon, 2 Dec 2024 13:45:51 -0500 Subject: [PATCH] ci: add dist workflow --- .github/workflows/dist.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/dist.yml diff --git a/.github/workflows/dist.yml b/.github/workflows/dist.yml new file mode 100644 index 0000000..6f5e1db --- /dev/null +++ b/.github/workflows/dist.yml @@ -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*