You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'release-*'
|
|
|
|
jobs:
|
|
build:
|
|
name: Build the IPK
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@master
|
|
- name: Prepare
|
|
run: |
|
|
mkdir -p bin/luci-app-argon-config
|
|
cp -rf ./luasrc ./po ./root ./Makefile ./bin/luci-app-argon-config
|
|
- name: Docker Build
|
|
run: |
|
|
docker pull openwrt/sdk
|
|
docker run --rm -u root -v "$(pwd)"/bin/:/home/build/openwrt/bin -v ${{ github.workspace }}/.github/workflows:/home/build/workflows openwrt/sdk /bin/sh /home/build/workflows/build.sh
|
|
- name: Release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
set -x
|
|
assets=()
|
|
for asset in ./bin/packages/x86_64/base/*argon-config*.ipk; do
|
|
assets+=("-a" "$asset")
|
|
done
|
|
tag_name=$(basename ${{github.ref}})
|
|
hub release create -p "${assets[@]}" -m "$tag_name" "$tag_name"
|
|
- name: Upload Log
|
|
if: ${{ always() }}
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: buildlog
|
|
path: bin/logs.tar.xz
|