Update actions
This commit is contained in:
58
.github/workflows/1
vendored
58
.github/workflows/1
vendored
@ -1,58 +0,0 @@
|
||||
name: OpenWRT Github CI
|
||||
on:
|
||||
push:
|
||||
watch:
|
||||
types: started
|
||||
schedule:
|
||||
- cron: 0 0 * * */3
|
||||
|
||||
jobs:
|
||||
OpenwrtBuild:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
config:
|
||||
- adblock
|
||||
- cli
|
||||
- luci
|
||||
- wireguard-luci
|
||||
- wireguard-cli
|
||||
branch:
|
||||
- openwrt-19.07
|
||||
- openwrt-18.06
|
||||
|
||||
name: "Branch: ${{ matrix.branch }}, Config: ${{ matrix.config }}"
|
||||
steps:
|
||||
- name: Checkout Reposiory
|
||||
uses: actions/checkout@main
|
||||
|
||||
- name: "Copiler Openwrt with CONFIG: ${{ matrix.config }}, and Branch: ${{ matrix.branch }}"
|
||||
uses: Sirherobrine23/Actions-Build-Openwrt@main
|
||||
continue-on-error: true
|
||||
with:
|
||||
CONFIG: "configs/${{ matrix.config }}.config"
|
||||
BRANCH: "${{ matrix.branch }}"
|
||||
SCRIPT1: 'p2.sh'
|
||||
|
||||
- name: Delete old tag and release
|
||||
uses: Sirherobrine23/delete-older-releases@master
|
||||
continue-on-error: true
|
||||
with:
|
||||
delete_tags: true
|
||||
keep_latest: 0
|
||||
pattern_regex: true
|
||||
delete_tag_pattern: "Build_.*_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: "Upload with tag: Build_${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: "TP-Link WR941NDv3, Branch: ${{ matrix.branch }}, Config: ${{ matrix.config }}"
|
||||
tag_name: "Build_${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
body_path: ${{ env.BODYFILE }}
|
||||
files: |
|
||||
${{ env.RELEASEFOLDER }}/*
|
||||
!${{ env.BODYFILE }}
|
54
.github/workflows/WR941NDv3.yml
vendored
54
.github/workflows/WR941NDv3.yml
vendored
@ -12,15 +12,17 @@ jobs:
|
||||
name: "Branch: ${{ matrix.branch }}, Config: ${{ matrix.config }}"
|
||||
strategy:
|
||||
matrix:
|
||||
branch:
|
||||
- openwrt-19.07
|
||||
- openwrt-18.06
|
||||
config:
|
||||
- adblock
|
||||
- cli
|
||||
- luci
|
||||
- wireguard-luci
|
||||
- wireguard-cli
|
||||
branch:
|
||||
- openwrt-19.07
|
||||
- openwrt-18.06
|
||||
|
||||
# Build steps
|
||||
steps:
|
||||
- name: Checkout Reposiory
|
||||
uses: actions/checkout@main
|
||||
@ -28,20 +30,46 @@ jobs:
|
||||
- name: "Build, CONFIG: ${{ matrix.config }}, and Branch: ${{ matrix.branch }}"
|
||||
uses: Sirherobrine23/Actions-Build-Openwrt@main
|
||||
continue-on-error: true
|
||||
env:
|
||||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
with:
|
||||
CONFIG: "configs/${{ matrix.config }}.config"
|
||||
BRANCH: "${{ matrix.branch }}"
|
||||
SCRIPT1: 'p2.sh'
|
||||
RELEASE: true
|
||||
RELEASE_TAGNAME: "${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
RELEASE_BODY: |
|
||||
Branch: ${{ matrix.branch }}
|
||||
Config File: ${{ matrix.config }}
|
||||
Device: TP-Link WR941ND
|
||||
# Fist script before clone repo
|
||||
SCRIPT1: |
|
||||
#!/bin/bash
|
||||
# Modify default IP
|
||||
# sed -i 's/192.168.1.1/192.168.2.1/g' ${Openwrt_path}/package/base-files/files/bin/config_generate
|
||||
|
||||
- name: "Upload: ${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
uses: softprops/action-gh-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
with:
|
||||
name: "Branch: ${{ matrix.branch }}, Config: ${{ matrix.config }}"
|
||||
tag_name: "${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
body: "None"
|
||||
files: "./"
|
||||
# Hostaname
|
||||
sed -i 's/OpenWrt/wr941ndv3/g' "${Openwrt_path}/package/base-files/files/bin/config_generate"
|
||||
|
||||
# NTP Server Brazil
|
||||
sed -i 's/0.openwrt.pool.ntp.org/a.st1.ntp.br/g' "${Openwrt_path}/package/base-files/files/bin/config_generate"
|
||||
sed -i 's/1.openwrt.pool.ntp.org/b.st1.ntp.br/g' "${Openwrt_path}/package/base-files/files/bin/config_generate"
|
||||
sed -i 's/2.openwrt.pool.ntp.org/c.st1.ntp.br/g' "${Openwrt_path}/package/base-files/files/bin/config_generate"
|
||||
sed -i 's/3.openwrt.pool.ntp.org/d.st1.ntp.br/g' "${Openwrt_path}/package/base-files/files/bin/config_generate"
|
||||
|
||||
# OpenWRT Wireless Activated
|
||||
sed -i 's/set wireless.radio${devidx}.disabled=1/set wireless.radio${devidx}.disabled=0/g' "${Openwrt_path}/package/kernel/mac80211/files/lib/wifi/mac80211.sh"
|
||||
sed -i 's/set wireless.default_radio${devidx}.ssid=OpenWrt/set wireless.default_radio${devidx}.ssid=Openwrt-WR941NDv3/g' "${Openwrt_path}/package/kernel/mac80211/files/lib/wifi/mac80211.sh"
|
||||
|
||||
|
||||
# - name: "Upload: ${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
# uses: softprops/action-gh-release@v1
|
||||
# env:
|
||||
# GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
||||
# with:
|
||||
# name: "Branch: ${{ matrix.branch }}, Config: ${{ matrix.config }}"
|
||||
# tag_name: "${{ github.run_id }}_${{ matrix.branch }}_${{ matrix.config }}"
|
||||
# body: "None"
|
||||
# files: "./out/*"
|
||||
|
||||
- name: Upload debian package file
|
||||
uses: actions/upload-artifact@v3
|
||||
|
Reference in New Issue
Block a user