12
12
branches :
13
13
- dev
14
14
- future
15
-
15
+
16
16
env :
17
- MORYX_OPTIMIZE_CODE : " false"
18
- MORYX_BUILD_CONFIG : " Release"
19
- MORYX_BUILDNUMBER : ${{github.run_number}}
20
17
dotnet_sdk_version : ' 7.x'
21
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
22
18
REPOSITORY_NAME : ${{ github.event.repository.name }}
19
+ MORYX_PACKAGE_TARGET_DEV : ' https://www.myget.org/F/moryx/api/v2/package'
20
+ MORYX_PACKAGE_TARGET_V3_DEV : ' https://www.myget.org/F/moryx/api/v3/index.json'
21
+ MORYX_PACKAGE_TARGET_FUTURE : ' https://www.myget.org/F/moryx-future/api/v2/package'
22
+ MORYX_PACKAGE_TARGET_V3_FUTURE : ' https://www.myget.org/F/moryx-future/api/v3/index.json'
23
+ MORYX_PACKAGE_TARGET_RELEASE : ' https://api.nuget.org/v3/index.json'
24
+ MORYX_PACKAGE_TARGET_V3_RELEASE : ' https://api.nuget.org/v3/index.json'
23
25
24
26
jobs :
27
+ EnvVar :
28
+ runs-on : ubuntu-latest
29
+ steps :
30
+ - run : echo ""
31
+ outputs :
32
+ dotnet_sdk_version : ${{ env.dotnet_sdk_version }}
33
+ REPOSITORY_NAME : ${{ env.REPOSITORY_NAME }}
34
+ MORYX_PACKAGE_TARGET_DEV : ${{ env.MORYX_PACKAGE_TARGET_DEV }}
35
+ MORYX_PACKAGE_TARGET_V3_DEV : ${{ env.MORYX_PACKAGE_TARGET_V3_DEV }}
36
+ MORYX_PACKAGE_TARGET_FUTURE : ${{ env.MORYX_PACKAGE_TARGET_FUTURE }}
37
+ MORYX_PACKAGE_TARGET_V3_FUTURE : ${{ env.MORYX_PACKAGE_TARGET_V3_FUTURE }}
38
+ MORYX_PACKAGE_TARGET_RELEASE : ${{ env.MORYX_PACKAGE_TARGET_RELEASE }}
39
+ MORYX_PACKAGE_TARGET_V3_RELEASE : ${{ env.MORYX_PACKAGE_TARGET_V3_RELEASE }}
40
+
25
41
Build :
26
- uses : PHOENIXCONTACT/tools/.github/workflows/build-tool.yml@main
42
+ needs : [EnvVar]
43
+ uses : phoenixcontact/tools/.github/workflows/build-tool.yml@future
27
44
with :
28
- MORYX_OPTIMIZE_CODE : " false"
29
- MORYX_BUILD_CONFIG : " Release"
30
- MORYX_BUILDNUMBER : ${{github.run_number}}
31
- dotnet_sdk_version : ' 7.x'
32
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
33
- REPOSITORY_NAME : ${{ github.event.repository.name }}
45
+ dotnet_sdk_version : ${{ needs.EnvVar.outputs.dotnet_sdk_version }}
46
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
34
47
35
48
UnitTests :
36
- needs : [Build]
37
- uses : PHOENIXCONTACT /tools/.github/workflows/unittest-tool.yml@main
49
+ needs : [EnvVar, Build]
50
+ uses : phoenixcontact /tools/.github/workflows/unittest-tool.yml@future
38
51
with :
39
- MORYX_OPTIMIZE_CODE : " false"
40
- MORYX_BUILD_CONFIG : " Release"
41
- MORYX_BUILDNUMBER : ${{github.run_number}}
42
- dotnet_sdk_version : ' 7.x'
43
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
44
- REPOSITORY_NAME : ${{ github.event.repository.name }}
52
+ dotnet_sdk_version : ${{ needs.EnvVar.outputs.dotnet_sdk_version }}
53
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
45
54
46
55
IntegrationTests :
47
- needs : [Build]
48
- uses : PHOENIXCONTACT /tools/.github/workflows/integrationtest-tool.yml@main
56
+ needs : [EnvVar, Build]
57
+ uses : phoenixcontact /tools/.github/workflows/integrationtest-tool.yml@future
49
58
with :
50
- MORYX_OPTIMIZE_CODE : " false"
51
- MORYX_BUILD_CONFIG : " Release"
52
- MORYX_BUILDNUMBER : ${{github.run_number}}
53
- dotnet_sdk_version : ' 7.x'
54
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
55
- REPOSITORY_NAME : ${{ github.event.repository.name }}
59
+ dotnet_sdk_version : ${{ needs.EnvVar.outputs.dotnet_sdk_version }}
60
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
56
61
57
62
ReportGenerator :
58
- needs : [UnitTests, IntegrationTests]
59
- uses : PHOENIXCONTACT /tools/.github/workflows/reportgenerator-tool.yml@main
63
+ needs : [EnvVar, UnitTests, IntegrationTests]
64
+ uses : phoenixcontact /tools/.github/workflows/reportgenerator-tool.yml@future
60
65
with :
61
- MORYX_OPTIMIZE_CODE : " false"
62
- MORYX_BUILD_CONFIG : " Release"
63
- MORYX_BUILDNUMBER : ${{github.run_number}}
64
- dotnet_sdk_version : ' 7.x'
65
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
66
- REPOSITORY_NAME : ${{ github.event.repository.name }}
66
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
67
67
68
68
Publish-Test-Coverage :
69
- needs : [ReportGenerator]
70
- uses : PHOENIXCONTACT /tools/.github/workflows/publish-test-coverage-tool.yml@main
69
+ needs : [EnvVar, ReportGenerator]
70
+ uses : phoenixcontact /tools/.github/workflows/publish-test-coverage-tool.yml@future
71
71
with :
72
- MORYX_OPTIMIZE_CODE : " false"
73
- MORYX_BUILD_CONFIG : " Release"
74
- MORYX_BUILDNUMBER : ${{github.run_number}}
75
- dotnet_sdk_version : ' 7.x'
76
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
77
- REPOSITORY_NAME : ${{ github.event.repository.name }}
72
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
78
73
secrets :
79
74
AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
80
75
AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
81
76
82
- Documentation :
83
- needs : [UnitTests]
84
- uses : PHOENIXCONTACT/tools/.github/workflows/documentation-tool.yml@main
85
- with :
86
- MORYX_OPTIMIZE_CODE : " false"
87
- MORYX_BUILD_CONFIG : " Release"
88
- MORYX_BUILDNUMBER : ${{github.run_number}}
89
- dotnet_sdk_version : ' 7.x'
90
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
91
- REPOSITORY_NAME : ${{ github.event.repository.name }}
77
+ # currently not working
78
+ # Documentation:
79
+ # needs: [EnvVar, UnitTests]
80
+ # uses: phoenixcontact/tools/.github/workflows/documentation-tool.yml@future
81
+ # with:
82
+ # REPOSITORY_NAME: ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
92
83
93
84
Publish :
94
- needs : [UnitTests]
95
- uses : PHOENIXCONTACT /tools/.github/workflows/publish-tool.yml@main
85
+ needs : [EnvVar, UnitTests]
86
+ uses : phoenixcontact /tools/.github/workflows/publish-tool.yml@future
96
87
with :
97
- MORYX_OPTIMIZE_CODE : " false"
98
- MORYX_BUILD_CONFIG : " Release"
99
- MORYX_BUILDNUMBER : ${{github.run_number}}
100
- dotnet_sdk_version : ' 7.x'
101
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE : true
102
- REPOSITORY_NAME : ${{ github.event.repository.name }}
88
+ dotnet_sdk_version : ${{ needs.EnvVar.outputs.dotnet_sdk_version }}
89
+ REPOSITORY_NAME : ${{ needs.EnvVar.outputs.REPOSITORY_NAME }}
90
+ MORYX_PACKAGE_TARGET_DEV : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_DEV }}
91
+ MORYX_PACKAGE_TARGET_V3_DEV : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_DEV }}
92
+ MORYX_PACKAGE_TARGET_FUTURE : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_FUTURE }}
93
+ MORYX_PACKAGE_TARGET_V3_FUTURE : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_FUTURE }}
94
+ MORYX_PACKAGE_TARGET_RELEASE : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_RELEASE }}
95
+ MORYX_PACKAGE_TARGET_V3_RELEASE : ${{ needs.EnvVar.outputs.MORYX_PACKAGE_TARGET_V3_RELEASE }}
103
96
secrets :
104
97
MYGET_TOKEN : ${{secrets.MYGET_TOKEN}}
105
- NUGET_TOKEN : ${{secrets.NUGET_TOKEN}}
98
+ NUGET_TOKEN : ${{secrets.NUGET_TOKEN}}
0 commit comments