-
Notifications
You must be signed in to change notification settings - Fork 47
48 lines (46 loc) · 1.32 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
42
43
44
45
46
47
48
name: Release General
on:
push:
tags:
- '[0-9]*.*'
jobs:
create:
name: Create GitHub release
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
outputs:
upload_url: ${{ steps.create_release.outputs.upload_url }}
release_id: ${{ steps.create_release.outputs.id }}
steps:
- name: Create release ...
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Micro Tetris v${{ github.ref }}
draft: false
prerelease: false
build:
name: Build and upload release artifacts
needs: create
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- name: Checkout tree ...
uses: actions/checkout@v2
- name: Check build ...
run: make
- name: Build release ...
run: |
make release
mkdir -p artifacts/
cp ../*.tar.* ../*.md5 ../*.sha* artifacts/
- name: Upload release artifacts ...
uses: skx/github-action-publish-binaries@release-0.15
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ needs.create.outputs.release_id }}
args: artifacts/*