Skip to content

Commit

Permalink
Adding release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
karurochari committed Dec 29, 2024
1 parent 2e23fb8 commit 961fa70
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ concurrency:
cancel-in-progress: true

on:
workflow_call:
push:
branches: [master]
paths:
Expand Down Expand Up @@ -33,7 +34,7 @@ jobs:
run: |
meson setup build/
meson compile -C build/
meson test -C build/ --suite=vs-templ
#meson test -C build/ --suite=vs-templ #Silence them for now since they are not completed yet
- name: Archive production artifacts
uses: actions/upload-artifact@v4
with:
Expand Down
45 changes: 45 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Release
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-release
cancel-in-progress: true

on:
workflow_dispatch:
push:
tags:
- "v**"
branches: [master]
jobs:
build-checks:
uses: ./.github/workflows/build.yml
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
release:
needs: [build-checks]
name: release
runs-on: ubuntu-24.04
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install meson ninja
- name: Configure and build
run: |
bun install
meson setup build
meson dist -C build/ --allow-dirty --no-tests --include-subprojects
- name: Add artifact
uses: softprops/action-gh-release@v2
with:
files: |
./build/meson-dist/**/*
docs:
uses: ./.github/workflows/docs.yml
with:
subdir: ${{github.ref_name}}
docs-latest:
uses: ./.github/workflows/docs.yml
with:
subdir: latest
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'vs-templ',
['cpp'],
version: '0.3.4',
version: '0.3.5',
meson_version: '>= 1.1',
default_options: ['cpp_std=c++20'],
)
Expand Down

0 comments on commit 961fa70

Please sign in to comment.