Skip to content

v0.7.0

v0.7.0 #13

Workflow file for this run

name: Release
on:
release:
types: [created]
env:
CARGO_TERM_COLOR: always
jobs:
release:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-20.04
artifact_name: astra
asset_name: astra-linux-amd64
- os: windows-2022
artifact_name: astra.exe
asset_name: astra-windows-amd64.exe
name: release ${{ matrix.os }}
runs-on: '${{ matrix.os }}'
environment: production
env:
CARGO_INCREMENTAL: 0
cache-key: "cargo-cache"
steps:
- uses: actions/checkout@v4
- name: Build Server
run: cargo build --release
- name: Upload server binary to release
uses: svenstaro/upload-release-action@v2
with:
file: ./target/release/${{ matrix.artifact_name }}
asset_name: ${{ matrix.asset_name }}
tag: ${{ github.ref }}
- uses: chrnorm/deployment-action@v2
name: Create GitHub deployment
id: deployment
with:
token: "${{ github.token }}"
environment-url: https://github.com/ArkForgeLabs/Astra
environment: production
- name: Update deployment status (success)
if: success()
uses: chrnorm/deployment-status@v2
with:
token: "${{ github.token }}"
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "success"
- name: Update deployment status (failure)
if: failure()
uses: chrnorm/deployment-status@v2
with:
token: "${{ github.token }}"
environment-url: ${{ steps.deployment.outputs.environment_url }}
deployment-id: ${{ steps.deployment.outputs.deployment_id }}
state: "failure"