Skip to content

Update to 0.22.5

Update to 0.22.5 #92

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Setup MSYS2 environment
uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: mingw-w64-ucrt-x86_64-gcc automake autoconf pkg-config make zip patch tar
- name: Build binaries
run: make -j2 MAKE="make -j2"
- uses: actions/upload-artifact@v3
with:
name: zip-archive
path: build/gettext-tools*.zip
- uses: nuget/setup-nuget@v1
- name: Build NuGet package
run: make nuget
- uses: actions/upload-artifact@v3
with:
name: nuget-package
path: build/*.nupkg
publish-release:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: zip-archive
- uses: ncipollo/release-action@v1
with:
allowUpdates: true
prerelease: true
artifacts: "*.zip"
token: ${{ secrets.GITHUB_TOKEN }}
publish-nuget:
if: startsWith(github.ref, 'refs/tags/v')
runs-on: windows-latest
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: nuget-package
- uses: nuget/setup-nuget@v1
with:
nuget-api-key: ${{ secrets.NUGET_API_KEY }}
nuget-api-key-source: https://www.nuget.org/api/v2/package
- name: Publish NuGet package
run: nuget push *.nupkg -Source https://www.nuget.org/api/v2/package