Combines rate limiting with mocking. Closes #350 (#461) #55
Workflow file for this run
This file contains 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: | |
tags: ['v*'] | |
jobs: | |
publish_binaries: | |
name: Publish binaries | |
runs-on: [windows-latest] | |
strategy: | |
matrix: | |
architecture: | |
- win-x64 | |
- win-x86 | |
- linux-x64 | |
- osx-x64 | |
env: | |
release: 'dev-proxy-${{ matrix.architecture }}-${{ github.ref_name }}' | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 8.0.x | |
- name: Publish ${{ matrix.architecture }} | |
run: dotnet publish ./dev-proxy/dev-proxy.csproj -c Release -p:PublishSingleFile=true -r ${{ matrix.architecture }} --self-contained -o ./${{ env.release }} | |
- name: Build plugins | |
run: dotnet build ./dev-proxy-plugins/dev-proxy-plugins.csproj -c Release -r ${{ matrix.architecture }} --no-self-contained | |
- name: Add plugins to output | |
run: cp ./dev-proxy/bin/Release/net8.0/${{ matrix.architecture }}/plugins ./${{ env.release }} -r | |
- name: Remove unnecessary files | |
run: | | |
pushd | |
cd ./${{ env.release }} | |
Get-ChildItem -Filter *.pdb -Recurse | Remove-Item | |
Get-ChildItem -Filter *.deps.json -Recurse | Remove-Item | |
Get-ChildItem -Filter *.runtimeconfig.json -Recurse | Remove-Item | |
popd | |
- name: Archive Release ${{ env.release }} | |
uses: thedoctor0/zip-release@master | |
with: | |
filename: '../${{ env.release }}.zip' | |
directory: './${{ env.release }}' | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: binaries-${{ env.release }} | |
path: ./${{ env.release }}.zip | |
create_release: | |
name: Create Release | |
needs: [publish_binaries] | |
environment: | |
name: gh_releases | |
runs-on: [windows-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
path: output | |
- name: Release | |
uses: anton-yurchenko/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
DRAFT_RELEASE: "false" | |
PRE_RELEASE: "false" | |
CHANGELOG_FILE: "CHANGELOG.md" | |
ALLOW_EMPTY_CHANGELOG: "true" | |
with: | |
args: | | |
output/binaries-*/*.zip |