mirror of
https://github.com/Slava-Shchipunov/awg-openwrt.git
synced 2026-03-14 01:13:09 +00:00
fix: clear workspace before build
This commit is contained in:
6
.github/workflows/build-module.yml
vendored
6
.github/workflows/build-module.yml
vendored
@@ -41,6 +41,9 @@ jobs:
|
|||||||
build_env: ${{ fromJson(needs.generate-config.outputs.job-config) }}
|
build_env: ${{ fromJson(needs.generate-config.outputs.job-config) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
|
- name: Clear Workspace
|
||||||
|
run: git clean -fdx
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
repository: openwrt/openwrt
|
repository: openwrt/openwrt
|
||||||
@@ -127,7 +130,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
tag_name=${{ github.ref_name }}
|
tag_name=${{ github.ref_name }}
|
||||||
mkdir -p awgrelease
|
mkdir -p awgrelease
|
||||||
postfix="${tag_name}_v${{ matrix.build_env.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
postfix="v${{ matrix.build_env.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
|
||||||
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
|
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amneziawg-tools_*.ipk awgrelease/amneziawg-tools_${postfix}.ipk
|
||||||
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
|
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/luci-app-amneziawg_*.ipk awgrelease/luci-app-amneziawg_${postfix}.ipk
|
||||||
cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
|
cp bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg_*.ipk awgrelease/kmod-amneziawg_${postfix}.ipk
|
||||||
@@ -136,4 +139,3 @@ jobs:
|
|||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: awgrelease/*.ipk
|
files: awgrelease/*.ipk
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user