From 331a364053dee1d76666997bb78b87f6078094c6 Mon Sep 17 00:00:00 2001 From: loop <126372784+tribes2@users.noreply.github.com> Date: Mon, 20 Oct 2025 15:51:31 +0100 Subject: [PATCH] add github release script --- .github/workflows/skillsector.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/skillsector.yml diff --git a/.github/workflows/skillsector.yml b/.github/workflows/skillsector.yml new file mode 100644 index 0000000..8ee36e3 --- /dev/null +++ b/.github/workflows/skillsector.yml @@ -0,0 +1,31 @@ +name: SkillSector distribution + +on: + push: + tags: + - '*' + +jobs: + release: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repository code + uses: actions/checkout@v4 + # - name: Update DMP2::Version script to match GitHub tag + # run: | + # VERSION_FILE='scripts/autoexec/dmp2VersionCheck.cs' + # NEW_VERSION="\"${{ github.ref_name }}\"" + # sed -i "s/\(\$DMP2::Version = \)[^;]*;/\1${NEW_VERSION};/" "$VERSION_FILE" + - name: Build and release a vl2 using the vl2-builder action + id: 'release' + uses: tribes2/vl2-builder@v2.0 + with: + tag-name: ${{ github.ref_name }} + archive-prefix: 'SkillSector' + exclude-patterns: '.git/*, *.zip, *.vl2, .github/*' + - name: Report build success for the fun of it + run: | + echo "Successfully released asset: ${{ steps.release.outputs.asset_name }}"