Windows runner backslash. #5
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
# Action to publish packages under the `next` tag for testing | |
# Packages are versioned as `0.0.0-{tag}-DATETIMESTAMP` | |
name: Create Dev Release | |
on: | |
push: | |
jobs: | |
dev-release: | |
name: Publish Dev Packages | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Setup .NET SDK | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: '8.0' | |
- name: Download PowerSync extension | |
run: dotnet run --project Tools/Setup | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Extract Version from CHANGELOG.md | |
id: extract_version | |
shell: bash | |
run: | | |
VERSION=$(awk '/^## [0-9]+\.[0-9]+\.[0-9]+/ {print $2; exit}' PowerSync/PowerSync.Common/CHANGELOG.md) | |
echo "Detected Version: $VERSION" | |
echo "VERSION=$VERSION" >> $GITHUB_ENV | |
- name: Run Pack | |
run: dotnet pack -c Release -p:VersionPrefix=$VERSION -p:VersionSuffix="dev-$(date +%Y%m%d)-$(git rev-parse --short HEAD)" -o ${{ github.workspace }}/output | |
- name: Run Push | |
run: dotnet nuget push ${{ github.workspace }}\output\*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }} | |