updated samples

هذا الالتزام موجود في:
Chris Ayers
2022-07-06 16:54:09 -04:00
الأصل e3ab43c8c0
التزام 76de084efc
6 ملفات معدلة مع 15 إضافات و13 حذوفات

عرض الملف

@@ -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 }}

عرض الملف

@@ -1,6 +1,6 @@
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => "Hello FTA Live!");
app.MapGet("/", () => "Hello Cincinnati Software Craftsmanship!");
app.Run();