-
Notifications
You must be signed in to change notification settings - Fork 6
/
release-old.yml
39 lines (37 loc) · 1.24 KB
/
release-old.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
name: Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get Release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package project
run: |
./build.sh linux-arm python 3.5
- name: Upload Release Asset
id: upload-release-asset
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: voco-${{ steps.get_release.outputs.tag_name }}.tgz
asset_name: voco-${{ steps.get_release.outputs.tag_name }}.tgz
asset_content_type: application/gnutar
- name: Upload Release Asset Checksum
id: upload-release-asset-checksum
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.get_release.outputs.upload_url }}
asset_path: voco-${{ steps.get_release.outputs.tag_name }}.tgz.sha256sum
asset_name: voco-${{ steps.get_release.outputs.tag_name }}.tgz.sha256sum
asset_content_type: text/plain