-
Notifications
You must be signed in to change notification settings - Fork 4
48 lines (42 loc) · 1.33 KB
/
main.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
on:
push:
branches:
- master
pull_request:
branches:
- master
release:
types:
- published
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Test and package the extension
id: release
uses: yeswiki/[email protected]
- name: Assess md5 and archive name
run: |
echo "${{ steps.release.outputs.archive-name }} md5sum is ${{ steps.release.outputs.md5sum }}"
- name: Upload zip file
uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/${{ steps.release.outputs.archive-name }}
asset_name: ${{ steps.release.outputs.archive-name }}
asset_content_type: application/zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload md5 file
uses: actions/upload-release-asset@v1
if: ${{ github.event_name == 'release' }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./dist/${{ steps.release.outputs.archive-name }}.md5
asset_name: ${{ steps.release.outputs.archive-name }}.md5
asset_content_type: text/plain
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}