@@ -2,48 +2,40 @@ name: .NET Core build & build docker dev image
2
2
3
3
on :
4
4
push :
5
- branches : [ master ]
5
+ branches : [master]
6
6
pull_request :
7
- branches : [ master ]
7
+ branches : [master]
8
8
9
9
jobs :
10
10
build :
11
-
12
11
runs-on : ubuntu-latest
13
12
14
13
steps :
15
- - uses : actions/checkout@v2
16
- - name : Setup .NET Core
17
- run : sudo apt-get install -y mono-complete
18
- - name : Install dependencies
19
- run : nuget install -o packages
20
- - name : Build executable
21
- run : msbuild -p:Configuration=Release
22
- - name : Upload a Build Artifact
23
- uses : actions/upload-artifact@v2.2.0
24
- with :
25
- # Artifact name
26
- name : NeoDocCompiled
27
- # A file, directory or wildcard pattern that describes what to upload
28
- path : bin/Release/*
29
- retention-days : 30
30
- - name : Login to GitHub Registry
31
- uses : docker/login-action@v1
32
- if : github.event_name != 'pull_request'
33
- with :
34
- registry : docker.pkg.github.com
35
- username : $GITHUB_ACTOR
36
- password : ${{ secrets.GITHUB_TOKEN }}
37
- - name : Build and push Docker images
38
- uses : docker/build-push-action@v2.0.1
39
- with :
40
- # Build's context is the set of files located in the specified PATH or URL
41
- context : .
42
- # List of tags
43
- tags : docker.pkg.github.com/ttt-2/neodoc/neodoc:dev
44
- # Always attempt to pull a newer version of the image
45
- pull : true
46
- load : true
47
- - name : Push docker image
48
- if : github.event_name != 'pull_request'
49
- run : docker push docker.pkg.github.com/ttt-2/neodoc/neodoc:dev
14
+ - uses : actions/checkout@v4
15
+ - name : Setup .NET Core
16
+ run : sudo apt-get install -y mono-complete
17
+ - name : Install dependencies
18
+ run : nuget install -o packages
19
+ - name : Build executable
20
+ run : msbuild -p:Configuration=Release
21
+ - name : Upload a Build Artifact
22
+ uses : actions/upload-artifact@v4
23
+ with :
24
+ name : NeoDocCompiled
25
+ path : bin/Release/*
26
+ retention-days : 30
27
+ - name : Login to GitHub Registry
28
+ uses : docker/login-action@v3
29
+ if : github.event_name != 'pull_request'
30
+ with :
31
+ registry : ghcr.io
32
+ username : ${{ github.actor }}
33
+ password : ${{ secrets.GITHUB_TOKEN }}
34
+ - name : Build and push Docker images
35
+ uses : docker/build-push-action@v6
36
+ with :
37
+ tags : ghcr.io/ttt-2/neodoc/neodoc:dev
38
+ pull : true
39
+ push : true
40
+ load : true
41
+ if : github.event_name != 'pull_request'
0 commit comments