From 52d671e7621b93905c40dbbdf0ef0f37faa009d8 Mon Sep 17 00:00:00 2001 From: Roger Chapman Date: Tue, 10 Nov 2020 17:31:10 +1100 Subject: [PATCH] release pipeline runs in unix only --- .github/workflows/package.yml | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 03933d8..5d89665 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -44,7 +44,7 @@ jobs: /usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString string ${{ steps.version.outputs.tag }}" info.plist wails build -f -p -ldflags "-X wombat/internal/app.semver=${{ steps.version.outputs.tag }}" - - name: Create darwin disk igage + - name: Create darwin disk image if: matrix.platform == 'macos-10.15' run: | brew install create-dmg @@ -112,17 +112,10 @@ jobs: runs-on: ubuntu-latest needs: package steps: - - name: Get version tag (unix) + - name: Get version tag id: version run: echo "::set-output name=tag::${GITHUB_REF/refs\/tags\//}" - - name: Get version tag (windows) - if: matrix.platform == 'windows-2019' - id: versionw - run: | - $tag = $env:GITHUB_REF -replace "refs/tags/", "" - echo "::set-output name=tag::$(echo $tag)" - - name: Get changelog url id: changelog run: echo "${{ steps.version.outputs.tag }}---$(date +'%Y-%m-%d')" | sed -e 's/\.//g' | awk '{print "::set-output name=url::https://github.com/rogchap/wombat/blob/master/CHANGELOG.md#" $1}' @@ -183,7 +176,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: Wombat_${{ steps.versionw.outputs.tag }}_Windows_x86_64.zip/Wombat_${{ steps.versionw.outputs.tag }}_Windows_x86_64.zip - asset_name: Wombat_${{ steps.versionw.outputs.tag }}_Windows_x86_64.zip + asset_path: Wombat_${{ steps.version.outputs.tag }}_Windows_x86_64.zip/Wombat_${{ steps.version.outputs.tag }}_Windows_x86_64.zip + asset_name: Wombat_${{ steps.version.outputs.tag }}_Windows_x86_64.zip asset_content_type: application/octet-stream