forked from puma/puma-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (41 loc) · 1.51 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Release
on:
push:
tags: [v*]
jobs:
publish:
runs-on: macos-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-go@v1
with:
go-version: 1.11.x
- name: Get the version
id: metadata
run: echo ::set-output name=version::$(echo $GITHUB_REF | cut -d / -f 3)
- run: make release
env:
VERSION: ${{ steps.metadata.outputs.version }}
- name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ steps.metadata.outputs.version }}
release_name: Release ${{ steps.metadata.outputs.version }}
draft: true
- name: Upload macOS Asset
uses: actions/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docker-dev-${{ steps.metadata.outputs.version }}-darwin-amd64.zip
asset_name: docker-dev-${{ steps.metadata.outputs.version }}-macos-amd64.zip
asset_content_type: application/zip
- name: Upload Linux Asset
uses: actions/[email protected]
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./docker-dev-${{ steps.metadata.outputs.version }}-linux-amd64.tar.gz
asset_name: docker-dev-${{ steps.metadata.outputs.version }}-linux-amd64.tar.gz
asset_content_type: application/gzip