This commit is contained in:
Valmo Trindade
2024-09-08 00:26:01 -03:00
parent aab17e98fc
commit d2803ef694
3 changed files with 81 additions and 7 deletions

View File

@@ -1,9 +1,7 @@
name: Beta
name: Publish_Beta
on:
push:
branches: [ rust-extension, dev ]
pull_request:
branches: [ dev ]
jobs:
@@ -50,7 +48,29 @@ jobs:
uses: arma-actions/hemtt@v1
- name: Build
run: hemtt release
- uses: actions/upload-artifact@v2
- name: Extract Zipped Mod
run: unzip releases/armatak-latest.zip -d releases
- uses: arma-actions/workshop-upload@v1
with:
name: armatak.zip
path: 'releases/armatak-latest.zip'
appId: '107410'
itemId: ${{ secrets.STEAM_WORKSHOP_ITEM_ID }}
contentPath: releases/@armatak
changelog: 'Update'
env:
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }}
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }}
- name: Discord notification
uses: tsickert/discord-webhook@v5.3.0
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
username: ARMATAK
avatar-url: https://media.githubusercontent.com/media/${{ github.repository }}/main/files/picture.png
embed-title: ${{ github.repository }} Updated and Published
embed-url: 'https://github.com/${{ github.repository }}'
embed-description: Commit ${{ github.sha }} - ${{ github.event.head_commit.message }} authorized and updated on Steam Workshop!
embed-author-name: ${{ github.actor }}
embed-author-url: https://github.com/${{ github.actor }}
embed-author-icon-url: https://avatars.githubusercontent.com/${{ github.actor }}
embed-footer-icon-url: https://avatars.githubusercontent.com/${{ github.repository_owner }}
embed-footer-text: ${{ github.repository_owner }}
embed-color: 4849919