Release #174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
statuses: write | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: checkout | |
uses: actions/checkout@v4 | |
- name: release | |
run: | | |
.github/scripts/release.sh > notes.txt | |
- name: notes | |
run: | | |
{ | |
echo 'NOTES<<EOF' | |
cat notes.txt | |
echo EOF | |
} >> "$GITHUB_ENV" | |
- name: git | |
run: | | |
git config user.name "qlibs@github.com" | |
git config user.email "noreply@github.com" | |
- name: commit | |
run: | | |
if ! git diff --quiet; then | |
git add qlibs | |
git commit -m "release: $(date +'%Y_%m_%d')" | |
fi | |
- name: tag | |
run: | | |
TAG_NAME=qlibs-$(date +'%Y_%m_%d').00 | |
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV | |
git tag $TAG_NAME | |
git push origin $TAG_NAME | |
- name: push | |
run: git push origin main | |
- name: github | |
uses: actions/create-release@v1 | |
with: | |
tag_name: ${{ env.TAG_NAME }} | |
release_name: ${{ env.TAG_NAME }} | |
body: | | |
<a href="https://qlibs.github.io"><img width="25%" src="https://qlibs.github.io/img/qlibs_logo.png" /></a> | |
## Libraries | |
${{ env.NOTES }} | |
## Integration | |
> [CMake.FetchContent](https://cmake.org/cmake/help/latest/module/FetchContent.html) | |
``` | |
include(FetchContent) | |
FetchContent_Declare( | |
qlibs | |
GIT_REPOSITORY https://github.com/qlibs/qlibs | |
GIT_TAG ${{ env.TAG_NAME }} | |
) | |
FetchContent_MakeAvailable(qlibs) | |
``` | |
``` | |
target_link_libraries(${PROJECT_NAME} PUBLIC qlibs); | |
``` | |
draft: false | |
prerelease: false |