This repository has been archived by the owner on May 29, 2024. It is now read-only.
fix ci #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- dev | |
- master | |
tags: | |
- '*' | |
jobs: | |
openwrt: | |
name: OpenWrt package | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup version code | |
run: | | |
sed -i 's/PKG_VERSION:=master/PKG_VERSION:=v${{ github.ref_name }}/' build/openwrt/openwrt-esfshell/Makefile | |
sed -i 's/PKG_RELEASE:=1/PKG_RELEASE:=${{ github.run_number }}/' build/openwrt/openwrt-esfshell/Makefile | |
- name: Build OpenWrt package | |
uses: openwrt/gh-action-sdk@main | |
env: | |
ARCH: x86_64-master | |
PACKAGES: openwrt-esfshell | |
FEED_DIR: ${{ github.workspace }}/build/openwrt | |
- name: Upload compiled package | |
uses: actions/upload-artifact@v3 | |
with: | |
name: openwrt-esfshell | |
path: bin/packages/x86_64/action/*.ipk | |
upload-release: | |
name: Upload releases | |
permissions: | |
contents: write | |
needs: | |
- openwrt | |
runs-on: ubuntu-latest | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: openwrt-esfshell | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
name: EsurfingShell v${{ github.ref_name }} | |
tag_name: ${{ github.ref_name }} | |
draft: true | |
files: | | |
*.ipk |