Skip to content

Commit

Permalink
Add -Dofficial_release=true when a new tag is published
Browse files Browse the repository at this point in the history
When a new tag is published, run the workflow to build the actifact with the arg "-Dofficial_release=true"
  • Loading branch information
moi15moi committed Dec 18, 2024
1 parent b0fc741 commit 44c4800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Meson CI
on:
push:
branches: [ master ]
tags: [ '*' ]
pull_request:
branches: [ master ]
workflow_dispatch:
Expand Down Expand Up @@ -122,7 +123,7 @@ jobs:
sudo apt-get install ninja-build build-essential libx11-dev libwxgtk3.0-gtk3-dev libfreetype6-dev pkg-config libfontconfig1-dev libass-dev libasound2-dev libffms2-dev intltool libboost-all-dev
- name: Configure
run: meson build ${{ matrix.config.args }} -Dbuildtype=${{ matrix.config.buildtype }}
run: meson build ${{ matrix.config.args }} -Dbuildtype=${{ matrix.config.buildtype }} ${{ github.ref_type == 'tag' && '-Dofficial_release=true' || '' }}

- name: Build
run: meson compile -C build
Expand Down

0 comments on commit 44c4800

Please sign in to comment.