Skip to content

Update xmake.yml

Update xmake.yml #52

Workflow file for this run

name: Build
permissions: write

Check failure on line 2 in .github/workflows/xmake.yml

View workflow run for this annotation

GitHub Actions / Build

Invalid workflow file

The workflow is not valid. .github/workflows/xmake.yml (Line: 2, Col: 14): Unexpected value 'write'
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
release:
types: [created]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
actions-cache-folder: '.xmake-cache'
actions-cache-key: 'ci'
- name: build
run: xmake -y --verbose
- name: Upload Artifacts
uses: actions/[email protected]
with:
path: ./build/windows/
- name: Upload Release Assets
if: github.event_name == 'release'
uses: softprops/action-gh-release@v1
with:
files: ./build/windows/**/*
token: ${{ secrets.GITHUB_TOKEN }}