Skip to content

Commit

Permalink
updating release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andrelcmoreira committed Aug 17, 2024
1 parent c512184 commit 34ad7e8
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,12 @@ name: Generate release
on:
release:
types: published
push:
branches:
- main

env:
COVERAGE_REPORT_DIR: build/coverage
MINIMUM_COVERAGE: 85
LD_PRELOAD: LD_PRELOAD=build/test/src/libc/libpreload.so
DOC_ARTIFACT: pool-day-doc

jobs:
build:
Expand Down Expand Up @@ -131,13 +134,13 @@ jobs:
cmake --build build
- name: Create documentation tarball
run: tar -czf pool-day-${{ github.ref }}.tar.gz build/html/
run: tar -czf ${{ env.DOC_ARTIFACT }}.tar.gz build/html/

- name: Upload documentation to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: pool-day-${{ github.ref }}.tar.gz
asset_name: pool-day-${{ github.ref }}.tar.gz
tag: ${{ github.ref }}
file: ${{ env.DOC_ARTIFACT }}.tar.gz
asset_name: ${{ env.DOC_ARTIFACT }}-${{ github.ref_name }}.tar.gz
tag: ${{ github.ref_name }}
overwrite: true

0 comments on commit 34ad7e8

Please sign in to comment.