mirror of
https://github.com/sagiegurari/duckscript
synced 2024-07-01 06:34:19 +00:00
release automation
This commit is contained in:
parent
a0e2d2d765
commit
f55ce9d486
|
@ -2,6 +2,7 @@
|
|||
[env]
|
||||
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true"
|
||||
CARGO_MAKE_DUCKSCRIPT_PROJECT_NAME = "duckscript"
|
||||
CARGO_MAKE_DUCKSCRIPT_VERSION = "0.1.0"
|
||||
|
||||
[env.sdk]
|
||||
CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS = "duckscript_sdk;duckscript_cli"
|
||||
|
@ -41,6 +42,14 @@ cwd = "./duckscript_cli"
|
|||
command = "cargo"
|
||||
args = [ "install", "--force", "--path", "." ]
|
||||
|
||||
[tasks.github-publish-curl]
|
||||
script = [
|
||||
'''
|
||||
API_JSON=$(printf '{"tag_name": "%s","target_commitish": "master","name": "%s v%s","body": "release","draft": false,"prerelease": false}' ${CARGO_MAKE_DUCKSCRIPT_VERSION} ${CARGO_MAKE_DUCKSCRIPT_PROJECT_NAME} ${CARGO_MAKE_DUCKSCRIPT_VERSION})
|
||||
curl --data "$API_JSON" https://api.github.com/repos/${GITHUB_REPO_NAME}/releases?access_token=${GITHUB_API_TOKEN}
|
||||
'''
|
||||
]
|
||||
|
||||
[tasks.zip-release-ci-flow]
|
||||
description = "Compiles the binary in release mode and zips it up"
|
||||
category = "CI"
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
theme: jekyll-theme-cayman
|
||||
title: duckscript
|
||||
description: Simple, extendable and embeddable scripting language.
|
||||
show_downloads: false
|
||||
version: 0.1.1
|
||||
show_downloads: false
|
Loading…
Reference in New Issue
Block a user