added beta publish action

This commit is contained in:
Valmo Trindade
2024-09-08 00:15:27 -03:00
parent ba12aeed65
commit 10843543d4
2 changed files with 58 additions and 2 deletions

56
.github/workflows/publish_early.yaml vendored Normal file
View File

@@ -0,0 +1,56 @@
name: Publish Beta
on:
push:
branches: [ rust_extension, dev ]
pull_request:
branches: [ dev ]
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@v2
- 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@v2
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@v1
- uses: actions/download-artifact@v2
with:
name: x86_64-pc-windows-msvc
- run: mv armatak.dll armatak_x64.dll
- uses: actions/download-artifact@v2
with:
name: i686-pc-windows-msvc
- name: Setup HEMTT
uses: arma-actions/hemtt@v1
- name: Build
run: hemtt release
- uses: actions/upload-artifact@v2
with:
name: armatak.zip
path: 'releases/armatak-latest.zip'

View File

@@ -8,8 +8,8 @@ path = "addons/main/script_version.hpp"
build = 0
major = 0
minor = 5
patch = 2
minor = 6
patch = 0
git_hash = 0