-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (43 loc) · 1.67 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: CI
on:
push:
branches:
- master # Adjust the branch as necessary
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: List files in current directory
run: ls -R .
- name: Set up environment variables
run: |
echo "Setting up environment variables..."
echo "NugetApiKey=${{ secrets.TRI_MONTHLY_TEMPO }}" >> $GITHUB_ENV
echo "Current environment variables:"
env | grep NugetApiKey || true
- name: Log secret length
run: |
echo "Secret length: ${#NugetApiKey}" # Now this will work since we've set it to an env variable
- name: List environment variables
run: env
- name: Test NugetApiKey
run: |
echo "NugetApiKey is set to: $NugetApiKey" # Will print the value (or part of it)
- name: Print workspace path
run: |
echo "Workspace is located at: $GITHUB_WORKSPACE"
- name: Check folder permissions
run: ls -ld "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler"
- name: Check .env file existence
run: ls -la "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler"
- name: Export environment variables
run: |
set -o allexport
grep -v '^#' "$GITHUB_WORKSPACE/PersistedAssemblyBuilder.ConsoleApp/BlazorBundler/.env" | grep -v '^$' | xargs -d '\n'
set +o allexport
- name: Load environment variables
run: bash ./.devcontainer/load-env-actions.sh
env:
NugetApiKey: ${{ secrets.TRI_MONTHLY_TEMPO }}