test
This commit is contained in:
@@ -11,27 +11,20 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Get build container
|
- name: Setup dotnet
|
||||||
id: adocbuild
|
uses: actions/setup-dotnet@v3
|
||||||
uses: tonynv/asciidoctor-action@master
|
|
||||||
with:
|
with:
|
||||||
program: "asciidoctor -D docs --backend=html5 -o index.html documentation/readme.adoc"
|
dotnet-version: '8.0.x'
|
||||||
- name: Print execution time
|
- name: Install dependencies
|
||||||
run: echo "Time ${{ steps.adocbuild.outputs.time }}"
|
run: dotnet restore ./src/LittleTown.sln
|
||||||
- name: Upload artifact
|
- name: Build
|
||||||
uses: actions/upload-artifact@v3
|
run: dotnet build ./src/LittleTown.sln
|
||||||
with:
|
- name: Test with the dotnet CLI
|
||||||
name: Doc
|
run: dotnet test ./src/LittleTown.sln
|
||||||
path: ./docs
|
|
||||||
retention-days: 5
|
|
||||||
- name: build docker images
|
|
||||||
run: docker build -t gitea.borealian.ovh/mcmuzzle/ludikzone:latest -f ./docker-prod/Dockerfile .
|
|
||||||
- name: upload image
|
|
||||||
run: |
|
|
||||||
echo "${{ secrets.PERSO_GITEAPASSWORD}}" | docker login gitea.borealian.ovh --username mcmuzzle --password-stdin
|
|
||||||
docker push gitea.borealian.ovh/mcmuzzle/ludikzone:latest
|
|
||||||
Reference in New Issue
Block a user