Skip to content

Update release.yml

Update release.yml #31

Workflow file for this run

# This action will use hemtt release to build the mod folder which then will be uploaded to the provided steam workshop page
name: Release
env:
FOLDER: @cvo_aux

Check failure on line 6 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

You have an error in your yaml syntax on line 6
WORKSHOPID: '3037257908_terst'
on:
release:
types: released
permissions:
contents: write
jobs:
release-addon:
runs-on: ubuntu-latest
steps:
- name: Set VERSION env
run: echo VERSION=${GITHUB_REF:11} >> $GITHUB_ENV
- name: Checkout the source code
uses: actions/checkout@v2
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT build
run: hemtt release --no-archive
- name: Move release to releases folder
run:
version="${{ github.event.release.tag_name }}"
mv .hemttout/release "${{ env.FOLDERNAME }}-${{ env.VERSION }}"
- name: Zip release
run: zip -r "${{ env.FOLDERNAME }}-${{ env.VERSION }}.zip" ./${{ env.FOLDERNAME }}-${{ env.VERSION }}
- name: Update Release with Files
uses: softprops/action-gh-release@v1
with:
files: ./${{ env.FOLDERNAME }}-${{ env.VERSION }}.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Update to Steam Workshop (stable)
uses: arma-actions/workshop-upload@v1
with:
itemId: ${{ env.WORKSHOPID }}
contentPath: './${{ env.FOLDERNAME }}-${{ env.VERSION }}'
changelog: |
https://github.com/${{ github.repository }}/releases/tag/v${{ env.VERSION }}
${{ github.event.release.body }}
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}