Skip to content

Commit 80eb212

Browse files
committed
Add release tag to VERSIONS file
1 parent 970df0e commit 80eb212

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ jobs:
2525
id: release_tag
2626
run: |
2727
$tag = $Env:RELEASE.split(".")[0]
28-
echo "tag=$tag" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
28+
echo "tag=$tag" | Out-File -FilePath $Env:GITHUB_OUTPUT -Encoding utf8 -Append
29+
echo "3P_WEBRTC_BUILD_RELEASE_VERSION=$Env:RELEASE" | Out-File -FilePath .\\VERSIONS -Encoding utf8 -Append
2930
- name: Disk Cleanup
3031
run: |
3132
Get-PSDrive
@@ -68,7 +69,9 @@ jobs:
6869
env:
6970
RELEASE: ${{ github.ref_name }}
7071
id: release_tag
71-
run: echo "tag=${RELEASE%%.*}" >> "$GITHUB_OUTPUT"
72+
run: |
73+
echo "tag=${RELEASE%%.*}" >> "$GITHUB_OUTPUT"
74+
echo "tag=${RELEASE}" >> "VERSION"
7275
- run: ./build.${{ matrix.name }}.sh "${{ steps.release_tag.outputs.tag }}_release"
7376
- name: Upload Artifact
7477
uses: actions/upload-artifact@v1
@@ -110,7 +113,9 @@ jobs:
110113
env:
111114
RELEASE: ${{ github.ref_name }}
112115
id: release_tag
113-
run: echo "tag=${RELEASE%%.*}" >> "$GITHUB_OUTPUT"
116+
run: |
117+
echo "tag=${RELEASE%%.*}" >> "$GITHUB_OUTPUT"
118+
echo "tag=${RELEASE}" >> "VERSION"
114119
- run: ./build.${{ matrix.name }}.sh "${{ steps.release_tag.outputs.tag }}_release"
115120
- name: Upload Artifact
116121
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)