From a2ea508a7d21a9949437924e4162fb5306e93563 Mon Sep 17 00:00:00 2001 From: Adam Biggs Date: Fri, 18 Oct 2024 02:01:03 -0300 Subject: [PATCH] First attempt at release GH Action --- .github/workflows/buildRelease.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/buildRelease.yml diff --git a/.github/workflows/buildRelease.yml b/.github/workflows/buildRelease.yml new file mode 100644 index 0000000..82b4d6d --- /dev/null +++ b/.github/workflows/buildRelease.yml @@ -0,0 +1,29 @@ +name: Build Release + +on: + release: + types: [ published, edited ] + +jobs: + buildRelease: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + submodules: recursive + - name: Build Release + env: + TAG: ${{ github.ref_name }} + run: | + echo "Perform and build steps here such as docs, .sch, .xsl, zip files, etc..." + - name: Attach Release Artifacts + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OWNER: ${{ github.repository_owner }} + REPO: ${{ github.event.repository.name }} + TAG: ${{ github.ref_name }} + run: | + SCHEMA_FILES=$(ls oval-schemas/*.xsd) + gh release upload $TAG $SCHEMA_FILES --clobber --repo $OWNER/$REPO