updated samples
هذا الالتزام موجود في:
@@ -23,7 +23,7 @@ jobs:
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run a one-line script
|
||||
- name: Hello Job1
|
||||
run: echo Hello from job1
|
||||
job2:
|
||||
# The type of runner that the job will run on
|
||||
@@ -32,7 +32,7 @@ jobs:
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run a one-line script
|
||||
- name: Hello Job2
|
||||
run: echo Hello from job2
|
||||
job3:
|
||||
# The type of runner that the job will run on
|
||||
@@ -41,5 +41,5 @@ jobs:
|
||||
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||
steps:
|
||||
# Runs a single command using the runners shell
|
||||
- name: Run a one-line script
|
||||
- name: Hello Job3
|
||||
run: echo Hello from job3
|
||||
|
@@ -17,8 +17,8 @@ env:
|
||||
formatting: ${{ format('{{Hello {0} {1} {2}!}}', 'Mona', 'the', 'Octocat') }}
|
||||
endsWith: ${{ endsWith('Hello world', 'ld') }}
|
||||
containsString: ${{ contains('Hello world', 'llo') }}
|
||||
containsArray: ${{ contains(fromJson('["Chris","Michael","Mauro"]'), 'chris') }}
|
||||
presentersString: ${{ join(fromJson('["Chris","Michael","Mauro"]'), ', ') }}
|
||||
containsArray: ${{ contains(fromJson('["Chris","Michael"]'), 'chris') }}
|
||||
presentersString: ${{ join(fromJson('["Chris","Michael"]'), ', ') }}
|
||||
|
||||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||
jobs:
|
||||
|
@@ -8,12 +8,10 @@ on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '!**'
|
||||
- 'node-example/**'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '!**'
|
||||
- 'node-example/**'
|
||||
|
||||
defaults:
|
||||
|
@@ -36,8 +36,12 @@ jobs:
|
||||
restore-keys: |
|
||||
${{ runner.os }}-nuget-
|
||||
|
||||
- name: Build with dotnet
|
||||
run: dotnet build --configuration Release
|
||||
- name: Restore dependencies
|
||||
run: dotnet restore
|
||||
- name: Build
|
||||
run: dotnet build --configuration Release --no-restore
|
||||
- name: Test
|
||||
run: dotnet test --no-build --verbosity normal
|
||||
|
||||
- name: dotnet publish
|
||||
run: dotnet publish -c Release -o ./webapp
|
||||
|
@@ -5,12 +5,10 @@ on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '!**'
|
||||
- 'container-example/**'
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
paths:
|
||||
- '!**'
|
||||
- 'container-example/**'
|
||||
|
||||
defaults:
|
||||
@@ -35,4 +33,6 @@ jobs:
|
||||
with:
|
||||
context: container-example
|
||||
push: true
|
||||
tags: ${{ secrets.DOCKER_USERNAME }}/static-site:latest
|
||||
tags: |
|
||||
${{ secrets.DOCKER_USERNAME }}/static-site:latest
|
||||
${{ secrets.DOCKER_USERNAME }}/static-site:${{ env.GITHUB_REV }}
|
||||
|
المرجع في مشكلة جديدة
حظر مستخدم