diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 22f8c0b..6b74e57 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,6 +23,13 @@ jobs: run: | docker run -v "$(pwd):c:/workdir" -e CI=$True ghcr.io/armaforces/arma3tools:v2 hemtt release + - uses: actions/upload-artifact@v2 + with: + name: hemttout + path: .hemttout/ + if-no-files-found: error + retention-days: 1 + - uses: actions/upload-artifact@v2 with: name: releases @@ -37,22 +44,26 @@ jobs: - name: Set VERSION env run: echo VERSION=${GITHUB_REF:11} >> $GITHUB_ENV + # Upload to GitHub - uses: actions/download-artifact@v2 with: name: releases - - # Upload to GitHub + path: releases - uses: softprops/action-gh-release@v1 with: - files: 'ArmaForces_Mods_${{ env.VERSION }}.zip' + files: 'releases/afm-${{ env.VERSION }}-*.zip' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Upload to Steam Workshop + - uses: actions/download-artifact@v2 + with: + name: hemttout + path: .hemttout - uses: arma-actions/workshop-upload@v1 with: itemId: '1934142795' # Id of item to update - contentPath: '${{ env.VERSION }}/@armaforces_mods' + contentPath: '.hemttout/release' changelog: 'https://github.com/ArmaForces/Mods/releases/tag/v${{ env.VERSION }}' env: STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}