Skip to content

Commit 5c286d2

Browse files
committed
try again with variable in artifact name
1 parent cd96f3c commit 5c286d2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
build:
2020
# The type of runner that the job will run on
2121
runs-on: ubuntu-latest
22-
22+
env:
23+
version: 1.1.${{ github.run_number }}
2324
# Steps represent a sequence of tasks that will be executed as part of the job
2425
steps:
2526
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -34,11 +35,11 @@ jobs:
3435
- name: Build extension
3536
run: |
3637
chmod +x gradlew
37-
./gradlew clean build -PBUILD_NUMBER=$GITHUB_RUN_NUMBER -PBUILD_SOURCEBRANCH=$GITHUB_REF_NAME -PBUILD_SOURCEVERSION=$GITHUB_SHA -PPACKAGE_VERSION=1.1.$GITHUB_RUN_NUMBER
38+
./gradlew clean build -PBUILD_NUMBER=$GITHUB_RUN_NUMBER -PBUILD_SOURCEBRANCH=$GITHUB_REF_NAME -PBUILD_SOURCEVERSION=$GITHUB_SHA -PPACKAGE_VERSION=${{ env.version }}
3839
3940
- name: Archive production artifacts
4041
uses: actions/upload-artifact@v3
4142
with:
42-
name: InfotableInspectorWidget-v1.1.${{ github.GITHUB_RUN_NUMBER }}
43+
name: InfotableInspectorWidget-v${{ env.version }}
4344
path: build/distributions/*.zip
4445
retention-days: 1

0 commit comments

Comments
 (0)