|
7 | 7 |
|
8 | 8 | jobs:
|
9 | 9 | build:
|
10 |
| - |
11 | 10 | runs-on: ubuntu-latest
|
12 | 11 |
|
13 | 12 | steps:
|
14 |
| - - uses: actions/checkout@v2 |
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: Set release version env var |
22 |
| - run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV |
23 |
| - - name: Upload a Build Artifact |
24 |
| - uses: actions/upload-artifact@v2.2.0 |
25 |
| - with: |
26 |
| - # Artifact name |
27 |
| - name: NeoDoc-${{ env.RELEASE_VERSION }} |
28 |
| - # A file, directory or wildcard pattern that describes what to upload |
29 |
| - path: bin/Release/* |
30 |
| - retention-days: 90 |
31 |
| - - name: Login to GitHub Registry |
32 |
| - uses: docker/login-action@v1 |
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:${{ env.RELEASE_VERSION }} |
44 |
| - # Always attempt to pull a newer version of the image |
45 |
| - pull: true |
46 |
| - load: true |
47 |
| - - name: Push docker image |
48 |
| - run: docker push docker.pkg.github.com/ttt-2/neodoc/neodoc:${{ env.RELEASE_VERSION }} |
| 13 | + - uses: actions/checkout@v4 |
| 14 | + - name: Setup .NET Core |
| 15 | + run: sudo apt-get install -y mono-complete |
| 16 | + - name: Install dependencies |
| 17 | + run: nuget install -o packages |
| 18 | + - name: Build executable |
| 19 | + run: msbuild -p:Configuration=Release |
| 20 | + - name: Set release version env var |
| 21 | + run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV |
| 22 | + - name: Upload a Build Artifact |
| 23 | + uses: actions/upload-artifact@v4 |
| 24 | + with: |
| 25 | + name: NeoDoc-${{ env.RELEASE_VERSION }} |
| 26 | + path: bin/Release/* |
| 27 | + retention-days: 90 |
| 28 | + - name: Login to GitHub Registry |
| 29 | + uses: docker/login-action@v3 |
| 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:${{ env.RELEASE_VERSION }} |
| 38 | + pull: true |
| 39 | + push: true |
| 40 | + load: true |
0 commit comments