8000 Update build-ipk.yml · rvinauto/homeproxy@bd17305 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update build-ipk.yml #1

Update build-ipk.yml

Update build-ipk.yml #1

Workflow file for this run

name: Build ipk for HomeProxy
on:
push:
branches:
- 'master'
- 'dev'
paths:
- 'htdocs/**'
- 'po/**'
- 'root/**'
- 'Makefile'
- '.github/**'
pull_request:
branches:
- 'master'
- 'dev'
types:
- opened
- synchronize
- reopened
paths:
- 'htdocs/**'
- 'root/**'
- 'Makefile'
- '.github/**'
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source tree
uses: actions/checkout@v4
- name: Build ipk file
env:
RELEASE_TYPE: ${{ github.event_name }}
run: |
pushd .github
fakeroot bash build-ipk.sh
echo "ASSET_NAME=$(ls *.ipk)" >> $GITHUB_ENV
popd
- name: Publishing to GitHub Artifacts
uses: actions/upload-artifact@v4
if: github.event_name != 'release'
with:
name: ${{ env.ASSET_NAME }}
path: .github/*.ipk
- name: Publishing to GitHub Releases
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'release'
with:
repo_token: ${{ github.token }}
file: .github/*.ipk
tag: ${{ github.ref }}
file_glob: true
0