File tree Expand file tree Collapse file tree 2 files changed +29
-28
lines changed Expand file tree Collapse file tree 2 files changed +29
-28
lines changed Original file line number Diff line number Diff line change
1
+
1
2
on :
2
3
push :
3
- tags :
4
- - ' v*' # Triggers on version tags
4
+ branches :
5
+ - " master"
6
+ pull_request :
7
+ branches :
8
+ - " *"
5
9
6
10
jobs :
7
11
tests :
@@ -21,26 +25,20 @@ jobs:
21
25
env :
22
26
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
23
27
24
- - name : Get tag version
28
+ - name : Get version
25
29
id : get_version
26
30
run : |
27
31
git config --global user.email "atlas-tests-bot@nim-lang.org"
28
32
git config --global user.name "Atlas Tests Bot"
29
- # Strip the 'v' prefix from the tag
30
- VERSION=${GITHUB_REF#refs/tags/v}
33
+ VERSION=$(nim --verbosity:0 atlasTestsVersion)
31
34
echo "version=$VERSION" >> $GITHUB_OUTPUT
32
-
35
+
33
36
- name : Build Tests
34
37
run : |
38
+ nim --verbosity:0 atlasTestsVersion
35
39
nim atlasTestsCreate
36
40
37
- - name : Create Release
38
- uses : softprops/action-gh-release@v1
41
+ - uses : actions/upload-artifact@v4
39
42
with :
40
- name : Release ${{ steps.get_version.outputs.version }}
41
- tag_name : v${{ steps.get_version.outputs.version }}
42
- draft : false
43
- prerelease : false
44
- generate_release_notes : true
45
- env :
46
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
43
+ name : atlas-tests
44
+ path : atlas-tests.zip
Original file line number Diff line number Diff line change 1
-
2
1
on :
3
2
push :
4
- branches :
5
- - " main"
6
- pull_request :
7
- branches :
8
- - " *"
3
+ tags :
4
+ - ' **' # Triggers on version tags
9
5
10
6
jobs :
11
7
tests :
@@ -25,20 +21,27 @@ jobs:
25
21
env :
26
22
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
27
23
28
- - name : Get version
24
+ - name : Get tag version
29
25
id : get_version
30
26
run : |
31
27
git config --global user.email "atlas-tests-bot@nim-lang.org"
32
28
git config --global user.name "Atlas Tests Bot"
33
- VERSION=$(nim --verbosity:0 atlasTestsVersion)
29
+ # Strip the 'v' prefix from the tag
30
+ VERSION=${GITHUB_REF#refs/tags/v}
34
31
echo "version=$VERSION" >> $GITHUB_OUTPUT
35
-
32
+
36
33
- name : Build Tests
37
34
run : |
38
- nim --verbosity:0 atlasTestsVersion
39
35
nim atlasTestsCreate
40
36
41
- - uses : actions/upload-artifact@v4
37
+ - name : Create Release
38
+ uses : softprops/action-gh-release@v1
42
39
with :
43
- name : atlas-tests
44
- path : atlas-tests.zip
40
+ name : Release ${{ steps.get_version.outputs.version }}
41
+ tag_name : v${{ steps.get_version.outputs.version }}
42
+ draft : false
43
+ prerelease : false
44
+ generate_release_notes : true
45
+ files : atlas-tests.zip
46
+ env :
47
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments