Skip to content

Commit fc763d4

Browse files
KinzaQamarmachshev
authored andcommitted
ci: Github actions to version and creation of the release
If the action is successful, it will: 1) Determine the next version number 2) Create a tag and make a github release 3) Write the version number in pyproject.toml and made that a commit Signed-off-by: Kinza Qamar <[email protected]>
1 parent d7ed748 commit fc763d4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Copyright lowRISC contributors (OpenTitan project).
2+
# Licensed under the Apache License, Version 2.0, see LICENSE for details.
3+
# SPDX-License-Identifier: Apache-2.0
4+
5+
name: DVSim Release
6+
on:
7+
push:
8+
branches:
9+
- master
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
release:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Repository checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: Install python-semantic-release package
25+
run: python3 -m pip install python-semantic-release
26+
27+
- name: Versioning and Publishing the release
28+
env:
29+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30+
run: |
31+
semantic-release version --no-changelog
32+
semantic-release publish

0 commit comments

Comments
 (0)