Publish to Main Release on Steam #21
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to Main Release on Steam | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: windows-latest | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout the code | |
uses: actions/[email protected] | |
- name: Increment version locally | |
run: chmod +x ./tools/incrementVersion.js && | |
node ./tools/incrementVersion.js -b ${{github.sha}} | |
- name: Build addons | |
run: '.\tools\Builder\buildAddons.ps1 -WorkshopID ${{secrets.WORKSHOPID}}' | |
- name: Upload build addon artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: A3A | |
path: build\A3A | |
upload: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
needs: [build] | |
steps: | |
- name: Download addon artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: A3A | |
path: A3A | |
- name: Publish to Steam Workshop | |
uses: arma-actions/[email protected] | |
with: | |
appId: '107410' # default | |
itemId: ${{ secrets.WORKSHOPID }} # https://steamcommunity.com/sharedfiles/filedetails/?id=[...]] | |
contentPath: 'A3A' | |
changelog: '[url=https://github.com/official-antistasi-community/A3-Antistasi/commit/${{github.sha}}]Update from branch: ${{github.REF_NAME}}[/url].' | |
env: | |
STEAM_USERNAME: ${{ secrets.STEAM_USERNAME }} | |
STEAM_PASSWORD: ${{ secrets.STEAM_PASSWORD }} |