Skip to content
This repository was archived by the owner on Feb 17, 2025. It is now read-only.

Commit ee13fd8

Browse files
committed
autotag workflow #41
1 parent f7c3e32 commit ee13fd8

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Set version
2+
3+
on:
4+
# Triggers the workflow on push to master branch
5+
push:
6+
branches: [ master ]
7+
8+
jobs:
9+
autotag_version:
10+
name: Auto tag version
11+
runs-on: [ubuntu-latest]
12+
env:
13+
VERSION_FILE_NAME: version.txt
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
18+
- name: Check if version was changed
19+
uses: technote-space/get-diff-action@v6
20+
with:
21+
FILES: ${{ env.VERSION_FILE_NAME }}
22+
23+
- name: Tag new version
24+
if: ${{ env.MATCHED_FILES }}
25+
run: |
26+
version=$(cat ${{ env.VERSION_FILE_NAME }})
27+
git tag v$version
28+
29+
- name: Push tags
30+
if: ${{ env.MATCHED_FILES }}
31+
uses: ad-m/github-push-action@master
32+
with:
33+
tags: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Circuit Definition Library (Blueprint) for =nil; Foundation's Cryptography Suite
22

3-
[![Run tests](https://github.com/NilFoundation/crypto3-blueprint/actions/workflows/run_tests.yml/badge.svg)](https://github.com/NilFoundation/crypto3-blueprint/actions/workflows/run_tests.yml)
4-
53
Circuit definition library for =nil; Foundation's cryptography suite.
64

5+
[![Run tests](https://github.com/NilFoundation/crypto3-blueprint/actions/workflows/run_tests.yml/badge.svg)](https://github.com/NilFoundation/crypto3-blueprint/actions/workflows/run_tests.yml)
6+
77
## Building
88

99
This library uses Boost CMake build modules (https://github.com/BoostCMake/cmake_modules.git).

version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.1

0 commit comments

Comments
 (0)