mirror of
https://github.com/anticitizn/creamlinux.git
synced 2026-01-24 21:42:54 -05:00
manual release only
This commit is contained in:
committed by
GitHub
parent
9e636759ad
commit
64eb4f86e9
22
.github/workflows/cmake.yml
vendored
22
.github/workflows/cmake.yml
vendored
@@ -1,8 +1,16 @@
|
|||||||
name: CMake
|
name: CMake
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
workflow_dispatch:
|
||||||
branches: [ master ]
|
inputs:
|
||||||
|
relName:
|
||||||
|
description: 'Release Name'
|
||||||
|
required: true
|
||||||
|
default: 'Release v1.0.0'
|
||||||
|
tagName:
|
||||||
|
description: 'Release tag'
|
||||||
|
required: true
|
||||||
|
default: ""
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
@@ -41,23 +49,23 @@ jobs:
|
|||||||
${{github.workspace}}/build/lib
|
${{github.workspace}}/build/lib
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'workflow_dispatch'}}
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
|
||||||
with:
|
with:
|
||||||
tag_name: ${{ github.ref }}
|
tag_name: ${{ github.event.inputs.tagName }}
|
||||||
release_name: Release ${{ github.ref }}
|
release_name: ${{ github.event.inputs.relName }}
|
||||||
body: ""
|
body: ""
|
||||||
draft: false
|
draft: false
|
||||||
prerelease: false
|
prerelease: false
|
||||||
- uses: papeloto/action-zip@v1
|
- uses: papeloto/action-zip@v1
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'workflow_dispatch'}}
|
||||||
with:
|
with:
|
||||||
files: build/lib
|
files: build/lib
|
||||||
dest: creamlinux.zip
|
dest: creamlinux.zip
|
||||||
- name: Upload Release Assets
|
- name: Upload Release Assets
|
||||||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}
|
if: ${{ github.event_name == 'workflow_dispatch'}}
|
||||||
id: upload-release-asset
|
id: upload-release-asset
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
|
|||||||
Reference in New Issue
Block a user