Skip to content

[add] GitHub release action & VS Code cloud entries #2

[add] GitHub release action & VS Code cloud entries

[add] GitHub release action & VS Code cloud entries #2

Workflow file for this run

name: CI & CD
on:
push:
jobs:
Build_and_Test:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- run: xmake && xmake run
- if: startsWith(github.ref, 'refs/tags/')
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ !contains(github.ref, 'refs/heads/master') }}
generate_release_notes: true
files: |
build/linux/*
build/macosx/*
build/windows/*