mirror of
https://github.com/TheLartians/ModernCppStarter.git
synced 2025-08-30 21:51:12 +02:00
feat: nightly builds
This commit is contained in:
parent
5c1538f56e
commit
ed170b91a9
1 changed files with 7 additions and 10 deletions
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
|
@ -2,6 +2,8 @@ name: Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- main
|
- main
|
||||||
|
@ -35,6 +37,10 @@ jobs:
|
||||||
- name: build
|
- name: build
|
||||||
run: cmake --build build -j4 --config Release
|
run: cmake --build build -j4 --config Release
|
||||||
|
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
|
||||||
|
|
||||||
- name: zip
|
- name: zip
|
||||||
uses: thedoctor0/zip-release@main
|
uses: thedoctor0/zip-release@main
|
||||||
with:
|
with:
|
||||||
|
@ -42,17 +48,8 @@ jobs:
|
||||||
filename: ${{ matrix.os }}.zip
|
filename: ${{ matrix.os }}.zip
|
||||||
directory: build/out/
|
directory: build/out/
|
||||||
|
|
||||||
- name: ls
|
|
||||||
run: ls
|
|
||||||
|
|
||||||
- name: ls
|
|
||||||
run: ls build
|
|
||||||
|
|
||||||
- name: ls
|
|
||||||
run: ls build/out
|
|
||||||
|
|
||||||
- uses: ncipollo/release-action@v1
|
- uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
artifacts: build/out/${{ matrix.os }}.zip
|
artifacts: build/out/${{ matrix.os }}.zip
|
||||||
tag: latest
|
tag: nightly-${{ steps.date.outputs.date }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue