From 291a0880e8cf32d0ac7cba2492b8c7c4c418ad68 Mon Sep 17 00:00:00 2001 From: Valmo Trindade <70849974+valmojr@users.noreply.github.com> Date: Thu, 19 Oct 2023 17:22:34 -0300 Subject: [PATCH] Created release_dev.yml --- .github/workflows/release_dev.yml | 56 +++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/release_dev.yml diff --git a/.github/workflows/release_dev.yml b/.github/workflows/release_dev.yml new file mode 100644 index 0000000..443de6b --- /dev/null +++ b/.github/workflows/release_dev.yml @@ -0,0 +1,56 @@ +name: Release + +on: + push: + branches: + - main + +jobs: + validate: + runs-on: ubuntu-latest + steps: + - name: Checkout the source code + uses: actions/checkout@v3 + - name: Validate SQF + run: python3 tools/sqf_validator.py + - name: Validate Config + run: python3 tools/config_style_checker.py + - name: Check Strings + run: python3 tools/check_strings.py + - name: Check for BOM + uses: arma-actions/bom-check@v1 + + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout the source code + uses: actions/checkout@v3 + - name: Lint (sqflint) + uses: arma-actions/sqflint@master + continue-on-error: true # No failure due to many false-positives + + build_and_release: + runs-on: ubuntu-latest + steps: + - name: Checkout the source code + uses: actions/checkout@v3 + - name: Setup HEMTT + uses: arma-actions/hemtt@v1 + - name: Run HEMTT release + run: hemtt release + - name: Rename build folder + run: mv .hemttout/release .hemttout/@braf_factions + - name: Upload to Steam Workshop (DEV) + uses: actions/upload-artifact@v3 + with: + name: braf_factions_${{ github.sha }} + path: .hemttout/@* + - uses: arma-actions/workshop-upload@v1 + with: + appId: '107410' # default + itemId: '2740442349' # Id of item to update + contentPath: '@braf_factions' + changelog: 'Version ${{ env.VERSION }} update' + env: + STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} + STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}