Skip to content

Commit

Permalink
ci: add dist.yml
Browse files Browse the repository at this point in the history
Define an action that builds a dist tarball and attaches it to the
release.

Signed-off-by: Link Dupont <[email protected]>
  • Loading branch information
subpop authored and jirihnidek committed Jun 10, 2024
1 parent 403740a commit 5fe2d38
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: dist

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

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "stable"
- run: sudo apt-get update && sudo apt-get install -y libdbus-1-dev meson
- run: meson setup -Dvendor=True _build && meson dist -C _build
- uses: softprops/action-gh-release@v2
with:
files: _build/meson-dist/yggdrasil-*.tar.xz

0 comments on commit 5fe2d38

Please sign in to comment.