Skip to content

Commit e94327d

Browse files
committed
Probably fix CI/CD
1 parent ebd1166 commit e94327d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,16 +39,16 @@ jobs:
3939
- name: Determine version (manual dispatch)
4040
if: ${{ github.event_name == 'workflow_dispatch' }}
4141
run: |
42-
VERSION="v${{ github.event.inputs.version }}"
43-
echo "VERSION=$VERSION" >> $GITHUB_ENV
42+
TAG="v${{ github.event.inputs.version }}"
43+
echo "TAG=$TAG" >> $GITHUB_ENV
4444
# Create a tag for MinVer to detect
45-
git tag $VERSION
45+
git tag $TAG
4646
4747
- name: Determine version (tag push)
4848
if: ${{ github.event_name == 'push' }}
4949
run: |
50-
VERSION="${{ github.ref_name }}"
51-
echo "VERSION=$VERSION" >> $GITHUB_ENV
50+
TAG="${{ github.ref_name }}"
51+
echo "TAG=$TAG" >> $GITHUB_ENV
5252
5353
- name: Restore dependencies
5454
run: dotnet restore --no-cache
@@ -62,7 +62,7 @@ jobs:
6262
- name: Create zip artifact
6363
run: |
6464
mkdir zip
65-
zip -r "zip/NativeInvoke-${VERSION}.zip" ./bin
65+
zip -r "zip/NativeInvoke-${TAG}.zip" ./bin
6666
6767
- name: Upload zip artifact
6868
uses: actions/upload-artifact@v7
@@ -76,7 +76,7 @@ jobs:
7676
echo "## Changelog" > CHANGELOG.md
7777
echo "" >> CHANGELOG.md
7878
79-
CUR_TAG="${VERSION}"
79+
CUR_TAG="${TAG}"
8080
8181
# Find previous tag (if any)
8282
PREV_TAG=$(git describe --tags --abbrev=0 --match "v*" --exclude "$CUR_TAG" 2>/dev/null || echo "")
@@ -118,11 +118,11 @@ jobs:
118118
- name: Create GitHub release
119119
uses: softprops/action-gh-release@v2
120120
with:
121-
tag_name: ${{ env.VERSION }}
122-
name: "NativeInvoke ${{ env.VERSION }}"
121+
tag_name: ${{ env.TAG }}
122+
name: "NativeInvoke ${{ env.TAG }}"
123123
body: ${{ steps.changelog.outputs.changelog }}
124124
draft: false
125-
prerelease: ${{ contains(env.VERSION, '-') }}
125+
prerelease: ${{ contains(env.TAG, '-') }}
126126
#generate_release_notes: true
127127
files: |
128128
nupkg/*.nupkg

0 commit comments

Comments
 (0)