From cea912edfedaa9bb28f804b556b49c3b32d2cb82 Mon Sep 17 00:00:00 2001 From: Yoshiyuki TANIGUCHI Date: Mon, 16 Mar 2020 12:11:37 +0900 Subject: [PATCH] Update and rename release-win.yml to release.yml --- .github/workflows/release-win.yml | 48 ------------------------------- .github/workflows/release.yml | 13 +++++++++ 2 files changed, 13 insertions(+), 48 deletions(-) delete mode 100644 .github/workflows/release-win.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release-win.yml b/.github/workflows/release-win.yml deleted file mode 100644 index 94ad1b0..0000000 --- a/.github/workflows/release-win.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: release - -on: - release: - types: [created] - -jobs: - windows: - runs-on: windows-latest - steps: - - uses: actions/checkout@v2 - - name: Setup .NET Core - uses: actions/setup-dotnet@v1 - with: - dotnet-version: 3.1.101 - node-version: 12.x - - name: Install tool - run: dotnet tool restore - - name: Build with dotnet - working-directory: ./src/Aiplugs.PoshApp/ - run: dotnet tool run electronize build /target win - - name: Upload Release Asset1 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./src/Aiplugs.PoshApp/bin/Desktop/POSH App Setup ${{ github.event.release.tag_name }}.exe - asset_name: POSH-App-Setup-${{ github.event.release.tag_name }}.exe - asset_content_type: application/octet-stream - - name: Upload Release Asset2 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./src/Aiplugs.PoshApp/bin/Desktop/POSH App Setup ${{ github.event.release.tag_name }}.exe.blockmap - asset_name: POSH-App-Setup-${{ github.event.release.tag_name }}.exe.blockmap - asset_content_type: application/octet-stream - - name: Upload Release Asset3 - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ github.event.release.upload_url }} - asset_path: ./src/Aiplugs.PoshApp/bin/Desktop/latest.yml - asset_name: latest.yml - asset_content_type: text/yaml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..724605f --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,13 @@ +name: release + +on: + release: + types: [created] + +jobs: + windows: + runs-on: windows-latest + steps: + - name: test + run: echo ${{ github.event.release.tag_name.substring(1) }} +