Skip to content

Commit

Permalink
release pipeline runs in unix only
Browse files Browse the repository at this point in the history
  • Loading branch information
rogchap committed Nov 10, 2020
1 parent 27d748a commit 52d671e
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}'
Expand Down Expand Up @@ -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

0 comments on commit 52d671e

Please sign in to comment.