-
Notifications
You must be signed in to change notification settings - Fork 13
/
release-old.yml
42 lines (40 loc) · 1.35 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
40
41
42
name: Release
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 10
- name: Get Release
id: get_release
uses: bruceadams/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Package project
run: |
./package.sh
- 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: zigbee2mqtt-adapter-${{ steps.get_release.outputs.tag_name }}.tgz
asset_name: zigbee2mqtt-adapter-${{ 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: zigbee2mqtt-adapter-${{ steps.get_release.outputs.tag_name }}.tgz.sha256sum
asset_name: zigbee2mqtt-adapter-${{ steps.get_release.outputs.tag_name }}.tgz.sha256sum
asset_content_type: text/plain