Skip to content

Commit cdd15e0

Browse files
committed
Correct tag generation
1 parent b3898af commit cdd15e0

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
run: make gems
8080

8181
- name: Generate podspec
82-
run: make GIT_TAG=$GITHUB_REF generate-podspec
82+
run: make generate-podspec
8383

8484
- name: Release on Github
8585
uses: softprops/action-gh-release@v1

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ LIB_ENVPLUGIN_DYLIB=$(EXECUTABLE_FOLDER)/$(LIB_ENVPLUGIN_DYLIB_NAME)
1717
LIB_HCAPLUGIN_DYLIB=$(EXECUTABLE_FOLDER)/$(LIB_HCAPLUGIN_DYLIB_NAME)
1818
LIB_MEMPLUGIN_DYLIB=$(EXECUTABLE_FOLDER)/$(LIB_MEMPLUGIN_DYLIB_NAME)
1919
LICENSE_PATH="$(shell pwd)/LICENSE.md"
20+
GIT_CURRENT_TAG="$(shell git describe --abbrev=0 --tags)"
2021

2122
define PODSPEC_CONTENTS
2223
{
2324
"name": "Fibs",
24-
"version": "$(GIT_TAG)",
25+
"version": "$(GIT_CURRENT_TAG)",
2526
"summary": "Mock endpoints & execute commands",
2627
"description": "Library for mocking network traffic and executing shell commands locally from running app.",
2728
"homepage": "https://github.com/appunite/fibs",
@@ -35,7 +36,7 @@ define PODSPEC_CONTENTS
3536
},
3637
"source": {
3738
"git": "https://github.com/appunite/fibs",
38-
"tag": "$(GIT_TAG)"
39+
"tag": "$(GIT_CURRENT_TAG)"
3940
},
4041
"preserve_paths": "*",
4142
"exclude_files": "**/file.zip",

0 commit comments

Comments
 (0)