Skip to content

fix build, add goland project config #3

fix build, add goland project config

fix build, add goland project config #3

Workflow file for this run

name: Build and Release Artifacts
on:
push:
tags:
- "*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Nix
uses: cachix/install-nix-action@v27
- name: Build flake package
run: nix build
- name: Copy Built Result
run: |
mkdir -p ${{ github.workspace }}/artifacts
cp -r ./result/bin/mms ${{ github.workspace }}/artifacts
- name: Build wasm
run: nix build ".#wasm"
- name: Copy wasm Result
run: |
cp -r ./result/* ${{ github.workspace }}/artifacts
- name: Get tag name
id: get_tag
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.get_tag.outputs.tag }}
files: ${{ github.workspace }}/artifacts/*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}