Skip to content

Merge pull request #25 from mantasaudickas/feature/fix-en-lt-language… #46

Merge pull request #25 from mantasaudickas/feature/fix-en-lt-language…

Merge pull request #25 from mantasaudickas/feature/fix-en-lt-language… #46

name: Create Release
on:
push:
paths:
- 'src/**'
branches: [ main ]
jobs:
build:
name: Create release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x
- name: Install project dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --configuration Release --no-restore
- name: Export Countries
working-directory: ./src/Nager.Country.Export/bin/Release/net6.0
run: |
./Nager.Country.Export.exe
Compress-Archive -Path export/*.json -DestinationPath countries.zip
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_name: nager/Nager.Country
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: src/Nager.Country.Export/bin/Release/net6.0/countries.zip
asset_name: countries.zip
tag: ${{ github.ref }}-${{ github.run_id }}
overwrite: true
body: "Countries as json"