-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (35 loc) · 1.03 KB
/
create-cab-files.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: create-cab-files
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Install requirements
run: |
sudo apt-get update
sudo apt-get install -y curl gawk gcab
- name: Run build script
run: bash generate-cab-files.sh
- name : Upload artifacts
uses: actions/upload-artifact@master
with:
name: otter-cab-files
path: |
${{ github.workspace }}/output/*.cab
${{ github.workspace }}/output/*.xml
upload:
if: github.ref_type == 'tag'
needs: build
runs-on: ubuntu-latest
steps:
- name: Download all built artifacts
uses: actions/download-artifact@v2
- name: Release to the pushed tag.
uses: softprops/action-gh-release@v1
with:
files: |
${{ github.workspace }}/otter-cab-files/*.cab
${{ github.workspace }}/otter-cab-files/*.xml
fail_on_unmatched_files: true