Draft release workflow
This commit is contained in:
parent
c776e115ed
commit
7d9487bea5
3 changed files with 32 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
|
@ -6,7 +6,7 @@ on:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
26
.github/workflows/release.yml
vendored
Normal file
26
.github/workflows/release.yml
vendored
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
name: Release
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: Tag to release
|
||||||
|
required: true
|
||||||
|
default: 0.0.0
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- uses: actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
cache: npm
|
||||||
|
node-version-file: package.json
|
||||||
|
- run: npm build
|
||||||
|
- run: |
|
||||||
|
git commit -am "Release ${{ inputs.tag }}"
|
||||||
|
git push
|
||||||
|
gh release create ${{ inputs.tag }} --generate-notes
|
||||||
|
|
@ -216,6 +216,10 @@ To build action, run the following command:
|
||||||
$ npm run build
|
$ npm run build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Release
|
||||||
|
|
||||||
|
Use [Release][10] workflow to cut a new release.
|
||||||
|
|
||||||
|
|
||||||
[1]: https://github.com/bazelbuild/bazelisk
|
[1]: https://github.com/bazelbuild/bazelisk
|
||||||
[2]: https://bazel.build/remote/caching#disk-cache
|
[2]: https://bazel.build/remote/caching#disk-cache
|
||||||
|
|
@ -226,3 +230,4 @@ $ npm run build
|
||||||
[7]: https://github.com/bazelbuild/bazelisk/blob/master/README.md#how-does-bazelisk-know-which-bazel-version-to-run
|
[7]: https://github.com/bazelbuild/bazelisk/blob/master/README.md#how-does-bazelisk-know-which-bazel-version-to-run
|
||||||
[8]: https://github.com/actions/runner-images/pull/490
|
[8]: https://github.com/actions/runner-images/pull/490
|
||||||
[9]: https://bazel.build/reference/command-line-reference#flag--google_credentials
|
[9]: https://bazel.build/reference/command-line-reference#flag--google_credentials
|
||||||
|
[10]: https://github.com/bazel-contrib/setup-bazel/actions/workflows/release.yml
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue