WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

0.2.0

0.2.0 #6

Workflow file for this run

name: Build and Release Artifacts
permissions:
contents: write
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/main.wasm ${{ github.workspace }}/artifacts/mms.wasm
cp -r ./result/wasm_exec.js ${{ github.workspace }}/artifacts/go_wasm_loader.js
- 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 }}