Skip to content

Commit 1a75af6

Browse files
committed
ci: Adjust environment, variables
1 parent 38bfc52 commit 1a75af6

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,6 @@ env:
2020
NUGET_XMLDOC_MODE: skip
2121
ARTIFACTS_DIR: artifacts
2222

23-
# Required secrets:
24-
# SIGN_AZURE_CLIENT_ID
25-
# SIGN_AZURE_TENANT_ID
26-
# SIGN_AZURE_SUBSCRIPTION_ID
27-
# SIGN_KEY_VAULT_URL
28-
# SIGN_KEY_VAULT_CERTIFICATE_ID
29-
# UNO_NUGET_FEED_API_KEY
30-
# NUGET_ORG_API_KEY
31-
3223
jobs:
3324
build:
3425
name: Build
@@ -63,26 +54,26 @@ jobs:
6354

6455
- name: Prepare artifacts directory
6556
run: |
66-
rm -rf "$ARTIFACTS_DIR"
67-
mkdir -p "$ARTIFACTS_DIR/log"
57+
rm -rf "${{ env.ARTIFACTS_DIR }}"
58+
mkdir -p "${{ env.ARTIFACTS_DIR }}/log"
6859
6960
- name: Build solution
70-
run: dotnet build MonacoEditorComponent.slnx -c Release -p:ArtifactsPath="$ARTIFACTS_DIR" /bl:"$ARTIFACTS_DIR/log/build.binlog"
61+
run: dotnet build MonacoEditorComponent.slnx -c Release -p:ArtifactsPath="${{ env.ARTIFACTS_DIR }}" /bl:"${{ env.ARTIFACTS_DIR }}/log/build.binlog"
7162

7263
- name: Upload packages
7364
if: always()
7465
uses: actions/upload-artifact@v4
7566
with:
7667
name: NuGet
77-
path: artifacts/package/release
68+
path: ${{ env.ARTIFACTS_DIR }}/package/release
7869
if-no-files-found: warn
7970

8071
- name: Upload logs
8172
if: always()
8273
uses: actions/upload-artifact@v4
8374
with:
8475
name: logs
85-
path: artifacts/log
76+
path: ${{ env.ARTIFACTS_DIR }}/log
8677
if-no-files-found: warn
8778

8879
sign:
@@ -140,6 +131,7 @@ jobs:
140131
publish_dev:
141132
name: Publish Dev
142133
runs-on: ubuntu-latest
134+
environment: Development
143135
needs: sign
144136
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
145137
steps:
@@ -159,7 +151,7 @@ jobs:
159151
publish_release_uno:
160152
name: Publish Internal Feed
161153
runs-on: ubuntu-latest
162-
environment: Stable
154+
environment: Production
163155
needs: sign
164156
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/')
165157
steps:
@@ -174,7 +166,7 @@ jobs:
174166
publish_release_nuget_org:
175167
name: Publish Production
176168
runs-on: ubuntu-latest
177-
environment: Stable
169+
environment: Production
178170
needs: publish_release_uno
179171
if: github.event_name == 'push' && startsWith(github.ref, 'refs/heads/release/')
180172
permissions:

0 commit comments

Comments
 (0)