Skip to content

Commit

Permalink
Adjust content paths in release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
veteran29 committed Oct 7, 2023
1 parent 3e6d304 commit 2dce77b
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}
Expand Down

0 comments on commit 2dce77b

Please sign in to comment.