Skip to content

Commit

Permalink
Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-kondratov committed Aug 14, 2024
1 parent 0bc3179 commit 6618680
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 19 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build

on:
pull_request:
branches:
- master
push:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet cake
- name: Push
run: echo "${{ github.token }}" | dotnet cake --target Push --tag ${{ github.repository.is_default_branch && 'latest' || format('pr-{0}', github.event.pull_request.number) }}
21 changes: 2 additions & 19 deletions .github/workflows/ci.yml → .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
name: CI
name: Deploy

on:
pull_request:
branches:
- master
push:
branches:
- master
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Restore tools
run: dotnet tool restore
- name: Build
run: dotnet cake
- name: Push
run: echo "${{ github.token }}" | dotnet cake --target Push --tag ${{ github.repository.is_default_branch && 'latest' || format('pr-{0}', github.event.pull_request.number) }}
deploy:
runs-on: host,ARM64
environment: prod
Expand Down

0 comments on commit 6618680

Please sign in to comment.