Merge pull request #44 from kaleem213/feature/add-kosovo-country-info #76
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Create GitHub Release | |
| on: | |
| push: | |
| paths: | |
| - 'src/**' | |
| branches: [ main ] | |
| jobs: | |
| build: | |
| name: Create release | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v4 | |
| with: | |
| dotnet-version: 9.0.x | |
| - name: Install project dependencies | |
| working-directory: ./src | |
| run: dotnet restore | |
| - name: Build | |
| working-directory: ./src | |
| run: dotnet build Nager.Country.Export/Nager.Country.Export.csproj --configuration Release --no-restore --output ${{ runner.temp }} | |
| - name: Export Countries | |
| shell: pwsh | |
| run: | | |
| cd $env:RUNNER_TEMP | |
| ./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: ${{ runner.temp }}/countries.zip | |
| asset_name: countries.zip | |
| tag: ${{ github.ref }}-${{ github.run_id }} | |
| overwrite: true | |
| body: | | |
| # New Release of Nager.Country | |
| A new version of the JSON Country Dataset is now available | |
| - Country Names | |
| - Common name | |
| - Official name | |
| - Native name | |
| - Translations into multiple languages | |
| - Country Codes | |
| - ISO Alpha-2 code | |
| - ISO Alpha-3 code | |
| - Numeric ISO code | |
| - Top-Level Domains | |
| - Geographical Classification | |
| - Bordering Countries | |
| - Currencies | |
| - Calling Codes |