Skip to content

Update build.yml

Update build.yml #2

Workflow file for this run

name: Build-OpenWrt-EasyTier
on:
workflow_dispatch:
inputs:
tag:
description: '请填写发布Releases的版本号(留空不发布)'
required: false
default: ''
text:
description: '请填写发布的说明'
required: false
default: ''
env:
TAG: "${{ github.event.inputs.tag }}"
TZ: Asia/Shanghai
permissions:
contents: write
jobs:
build:
name: Build ${{ matrix.arch }}-${{ matrix.sdk }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch
- x86_64
sdk:

Check failure on line 28 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

You have an error in your yaml syntax on line 28
- openwrt-22.03
- SNAPSHOT
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Building packages
uses: sbwml/openwrt-gh-action-sdk@main
env:
ARCH: ${{ matrix.arch }}-${{ matrix.sdk }}
FEEDNAME: packages_ci
PACKAGES: easytier luci-app-easytier
NO_REFRESH_CHECK: true
V: s
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: EasyTier-${{ matrix.arch }}-${{ matrix.sdk }}
path: bin/packages/${{ matrix.arch }}/packages_ci/
- name: Create compress files
run: |
#tar -zcvf EasyTier-${{ matrix.sdk }}-${{ matrix.arch }}.tar.gz -C bin/packages/${{ matrix.arch }}/ packages_ci
zip -j EasyTier-${{ matrix.arch }}-${{ matrix.sdk }}.zip bin/packages/${{ matrix.arch }}/packages_ci/*
- name: Release
if: ${{ github.event.inputs.tag != '' }}
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
body: |
- 其中 **`openwrt-22.03`** 里面是ipk安装包 **`SNAPSHOT`** 里面是apk安装包
- **`*.apk` 是OpenWrt新版的APK包** 对于apk包跳过证书命令
`apk add --allow-untrusted luci-app-easytier.apk`
${{ github.event.inputs.text }}
tag_name: ${{ env.TAG }}
files: EasyTier-${{ matrix.arch }}-${{ matrix.sdk }}.zip