Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vmarcosp authored Nov 28, 2020
1 parent 7ac66ee commit 2e92af2
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
name: Release

on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:

jobs:
build:
Expand Down Expand Up @@ -84,7 +79,10 @@ jobs:
with:
name: macos-latest
path: _release/platform-darwin-x64


- uses: actions-ecosystem/action-get-latest-tag@v1
id: get-latest-tag

- name: Create archives for Github release
run: |
cd _release/platform-darwin-x64
Expand All @@ -96,18 +94,16 @@ jobs:
- name: Create Github release
id: create_release
if: "startsWith(github.ref, 'refs/tags/v')"
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
tag_name: ${{ steps.get-latest-tag.outputs.tag }}
release_name: Release ${{ steps.get-latest-tag.outputs.tag }}
draft: false
prerelease: false

- name: Upload spin-darwin-x64.zip to Github release
if: "startsWith(github.ref, 'refs/tags/v')"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand All @@ -118,7 +114,6 @@ jobs:
asset_content_type: application/gzip

- name: Upload spin-linux-x64.zip to Github release
if: "startsWith(github.ref, 'refs/tags/v')"
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Expand Down

0 comments on commit 2e92af2

Please sign in to comment.