Skip to content

Commit ed5455c

Browse files
committed
Add release workflow
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
1 parent 093c1b6 commit ed5455c

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.bcr/source.template.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"integrity": "",
3-
"strip_prefix": "{REPO}-{VERSION}",
4-
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
3+
"strip_prefix": "{VERSION}",
4+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{TAG}.tar.gz"
55
}
66

.github/workflows/release.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Release
2+
on:
3+
workflow_call:
4+
inputs:
5+
tag_name:
6+
required: true
7+
type: string
8+
secrets:
9+
publish_token:
10+
required: true
11+
12+
push:
13+
tags:
14+
- "v*.*.*"
15+
16+
permissions:
17+
id-token: write
18+
attestations: write
19+
contents: write
20+
21+
jobs:
22+
release:
23+
uses: bazel-contrib/.github/.github/workflows/release_ruleset.yaml@v7.2.2
24+
with:
25+
release_files: rules_mylang-*.tar.gz
26+
prerelease: false
27+
tag_name: ${{ github.ref_name }}

0 commit comments

Comments
 (0)