Files
armatak/.github/workflows/publish.yaml
Valmo Trindade 19efa72257 att
2024-08-04 18:40:52 -03:00

63 lines
2.6 KiB
YAML

name: Publish
on:
push:
branches:
- main
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Lint (sqflint)
uses: arma-actions/sqflint@master
continue-on-error: true
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout the source code
uses: actions/checkout@v3
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Run HEMTT build
run: hemtt release
- name: Extract Zipped Mod
run: unzip releases/armatak-latest.zip -d releases
- name: Pull GO Builder Docker Image
run: docker pull x1unix/go-mingw:1.20
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.20'
- name: Build armatak.dll
run: ls /home/runner/work/armatak/armatak/extensions/armatak
env:
GOARCH: amd64
CGO_ENABLED: 1
- uses: arma-actions/workshop-upload@v1
with:
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.actor }}/${{ github.repository }}/main/files/picture.png
embed-title: ${{ github.repository }} Updated and Published
embed-url: 'https://github.com/${{ github.actor }}/${{ 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