Skip to content

Commit

Permalink
prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-sannikov committed Dec 14, 2023
1 parent 7ce80fa commit 48e47ca
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/build-module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,10 @@ jobs:
- name: Update feeds
run: |
# clean if cache restored from different cache key
rm -rf bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/ || true
rm -rf bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/ || true
cp feeds.conf.default feeds.conf
echo "src-git awgopenwrt https://github.com/yury-sannikov/awg-openwrt.git" >> ./feeds.conf
Expand Down Expand Up @@ -100,12 +104,34 @@ jobs:
- name: Prepare artifacts
run: |
rm feeds.conf
ls -al bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt || true
ls -al bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/ || true
tag_name=${{ github.ref_name }}
tag_name=${tag_name:=test}
echo "tag_name: ${tag_name}"
mkdir -p awgrelease
postfix="${tag_name}_${{ matrix.tag }}_${{ matrix.build_env.pkgarch}}_${{ matrix.build_env.target}}_${{ matrix.build_env.subtarget}}"
echo "postfix: ${postfix}"
cp bin/packages/${{ matrix.build_env.pkgarch }}/awgopenwrt/amnezia-wg-tools_*.ipk awgrelease/amnezia-wg-tools_${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
ls -al awgrelease/
# - name: Release
# uses: softprops/action-gh-release@v1
# with:
# files: |
# bin/targets/${{ matrix.build_env.target}}/${{ matrix.build_env.subtarget}}/packages/kmod-amneziawg*.ipk

- name: Clenanup
run: |
rm feeds.conf || true
rm -rf awgrelease || true

0 comments on commit 48e47ca

Please sign in to comment.