From 855ddc93fa1732c382c0822b39d21cffe95d0ed9 Mon Sep 17 00:00:00 2001 From: Tomasz Jurtsch Date: Mon, 21 Dec 2020 12:45:49 +0100 Subject: [PATCH] Add Github action definition --- action.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..44959ea --- /dev/null +++ b/action.yml @@ -0,0 +1,30 @@ +name: 'Package build' +description: 'Build a package' +runs: + using: "composite" + steps: + - name: build + run: | + if [ $SKIP ]; then + exit 0; + fi + export PATH="$PATH:/c/ProgramData/Chocolatey/bin/" + export PATH="$PATH:/c/Program Files/Git/usr/bin/" + source .github/scripts/common.sh + bash .github/scripts/fixup-git.sh + bash .github/scripts/download_sdk.sh + source .github/scripts/common.sh + bash .github/scripts/install.sh + set -x + bash .github/scripts/script.sh + shell: bash + - name: on_success + if: success() + run: | + source .github/scripts/after_success.sh + shell: bash + - name: on_failure + if: failure() + run: | + source .github/scripts/after_failure.sh + shell: bash