This repository has been archived by the owner on Jan 16, 2024. It is now read-only.
Delete .idea/.idea.ThunderClient.CollectionToCurl/.idea directory #19
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: dotnet package | |
on: [push] | |
env: | |
PROJECT_PATH: ThunderClient.CollectionToCurl/ThunderClient.CollectionToCurl.csproj | |
EXE_PATH_86: ThunderClient.CollectionToCurl/bin/Release/net7.0-windows/win-x86/publish/ | |
EXE_PATH_64: ThunderClient.CollectionToCurl/bin/Release/net7.0-windows/win-x64/publish/ | |
ZIP_PATH_86: ThunderClient.CollectionToCurl/publish/ThunderClient.CollectionToCurl-Portable-x86.zip | |
ZIP_PATH_64: ThunderClient.CollectionToCurl/publish/ThunderClient.CollectionToCurl-Portable-x64.zip | |
jobs: | |
publish: | |
permissions: write-all | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: [ '7.x' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Minor version for each merge | |
id: AutoTagger | |
uses: anothrNick/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
WITH_V: true | |
- name: echo new tag | |
run: | | |
echo "The next tag version will be: ${{ steps.AutoTagger.outputs.new_tag }}" | |
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Publish Project (x86) | |
run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --output ${{ env.EXE_PATH_86 }} --self-contained -r win-x86 -p:PublishSingleFile=true --no-restore | |
- name: Publish Project (x64) | |
run: dotnet publish ${{ env.PROJECT_PATH }} -c Release --output ${{ env.EXE_PATH_64 }} --self-contained -r win-x64 -p:PublishSingleFile=true --no-restore | |
- name: Create Zip File (x86) | |
uses: papeloto/action-zip@v1 | |
with: | |
files: ${{ env.EXE_PATH_86 }} | |
dest: ${{ env.ZIP_PATH_86 }} | |
- name: Create Zip File (x64) | |
uses: papeloto/action-zip@v1 | |
with: | |
files: ${{ env.EXE_PATH_64 }} | |
dest: ${{ env.ZIP_PATH_64 }} | |
- name: Initialize Release | |
uses: actions/create-release@v1 | |
id: create_release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.AutoTagger.outputs.new_tag }} | |
release_name: Release ${{ steps.AutoTagger.outputs.new_tag }} | |
- name: Create Release (x86) | |
uses: csexton/release-asset-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ env.ZIP_PATH_86 }} | |
release-url: ${{ steps.create_release.outputs.upload_url }} | |
- name: Create Release (x64) | |
uses: csexton/release-asset-action@v2 | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
file: ${{ env.ZIP_PATH_64 }} | |
release-url: ${{ steps.create_release.outputs.upload_url }} |