mirror of
https://github.com/valmojr/armatak.git
synced 2026-06-13 21:13:28 +00:00
64 lines
1.8 KiB
YAML
64 lines
1.8 KiB
YAML
name: Publish
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
build_extension:
|
|
strategy:
|
|
matrix:
|
|
arrays: [
|
|
os: { tag: "windows-latest", target: "i686-pc-windows-msvc" },
|
|
os: { tag: "windows-latest", target: "x86_64-pc-windows-msvc" },
|
|
]
|
|
runs-on: ${{ matrix.arrays.os.tag }}
|
|
steps:
|
|
- name: Checkout Repo
|
|
uses: actions/checkout@v4
|
|
with:
|
|
lfs: true
|
|
- name: Install latest
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
target: ${{ matrix.arrays.os.target }}
|
|
toolchain: stable
|
|
default: true
|
|
- name: Cargo Build
|
|
run: cargo build --release
|
|
- name: Upload
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ matrix.arrays.os.target }}
|
|
path: target/release/armatak.dll
|
|
if-no-files-found: error
|
|
retention-days: 30
|
|
package:
|
|
needs: build_extension
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
lfs: true
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: x86_64-pc-windows-msvc
|
|
- run: mv ./armatak.dll ./armatak_x64.dll
|
|
- uses: actions/download-artifact@v4
|
|
with:
|
|
name: i686-pc-windows-msvc
|
|
- name: Setup HEMTT
|
|
uses: arma-actions/hemtt@v1
|
|
- name: Build
|
|
run: hemtt release
|
|
- name: Extract Zipped Mod
|
|
run: unzip releases/armatak-latest.zip -d releases
|
|
- 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 }} |