From 6fc3eb6d27aab2f79aa55569bca228f64f193abc Mon Sep 17 00:00:00 2001 From: Paco8 <5084042+Paco8@users.noreply.github.com> Date: Thu, 26 Jan 2023 16:01:05 +0100 Subject: [PATCH] Create build.yml --- .github/workflows/build.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..591db48 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build package + +on: + workflow_dispatch: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Install sources + uses: actions/checkout@v3 + + - name: Build package + run: | + make + wget https://github.com/Paco8/plugin.video.orange.spain/releases/download/v0.4.0/script.module.ttml2ssa-0.3.8.zip + + - name: Create artifacts + uses: actions/upload-artifact@v2 + with: + name: package + path: ./*.zip + + - name: Upload package to release + if: github.event_name == 'release' + uses: svenstaro/upload-release-action@v2 + with: + repo_token: ${{ secrets.GITHUB_TOKEN }} + file: ./*.zip + tag: ${{ github.ref }} + overwrite: true + file_glob: true