-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (30 loc) · 1.43 KB
/
dev_atil-feecalculator.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
on:
push:
branches:
- "develop"
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- uses: actions/checkout@v3
- name: Set up .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Install dependencies
run: dotnet restore .
- name: Build
run: dotnet publish ./src/ATIL.FeeCalculator.csproj --configuration Release --no-restore -o publish
- name: checkout octopus
uses: OctopusDeploy/[email protected]
- name: pack & push to octo
run: |
BRANCHNAME=${{github.ref_name}}
MY_VAR="1.0.${{github.run_number}}-beta"
octo pack --basePath=infrastructure --id atil_feecalculator-infrastructure --version $MY_VAR --outFolder ./infra --format zip
octo push --package "./infra/atil_feecalculator-infrastructure.${MY_VAR}.zip" --server="${{ secrets.OCTOPUS_SERVER }}" --apiKey="${{ secrets.OCTOPUS_APIKEY }}"
octo pack --basePath=publish --id atil_feecalculator --version $MY_VAR --outFolder ./out --format zip
octo push --package "./out/atil_feecalculator.${MY_VAR}.zip" --server="${{ secrets.OCTOPUS_SERVER }}" --apiKey="${{ secrets.OCTOPUS_APIKEY }}"
octo create-release --project="ATIL - Fee Calculator API" --server="${{ secrets.OCTOPUS_SERVER }}" --apiKey="${{ secrets.OCTOPUS_APIKEY }}" --channel=Dev