Skip to content

Adjust for otter

Adjust for otter #29

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