Skip to content

Commit

Permalink
Automatically publish pre-concatenated scripts for easy usage
Browse files Browse the repository at this point in the history
  • Loading branch information
pimterry committed Oct 23, 2023
1 parent 88d3796 commit f6fef5a
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on: [push, pull_request]
jobs:
build:
name: Build & test
runs-on: ubuntu-latest
container:
image: httptoolkit/act-build-base:v3.0.0

steps:
- uses: actions/checkout@v3

- name: Build a single-file Android script
run: |
mkdir -p ./build/
paste -sd'\n' ./config.js \
./native-connect-hook.js \
./android/android-proxy-override.js \
./android/android-system-certificate-injection.js \
./android/android-certificate-unpinning.js \
./android/android-certificate-unpinning-fallback.js \
> ./build/android-frida-interception-script.js
- uses: actions/upload-artifact@v2
with:
name: app
path: ./build/android-frida-interception-script.js
if-no-files-found: error

- name: Publish the combined script to GitHub Releases
uses: svenstaro/upload-release-action@v2
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
with:
asset_name: android-frida-interception-script.js
file: ./build/android-frida-interception-script.js
tag: ${{ github.ref }}
repo_token: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build/

0 comments on commit f6fef5a

Please sign in to comment.