diff --git a/.github/workflows/Gen.yml b/.github/workflows/Gen.yml new file mode 100644 index 0000000..73d919f --- /dev/null +++ b/.github/workflows/Gen.yml @@ -0,0 +1,34 @@ +name: Build and Generate Domain + +on: + push: + branches: [ main ] + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: List workspace contents + run: ls -al ${{ github.workspace }} + + - name: Install dependencies + working-directory: ${{ github.workspace }} + run: | + sudo apt update + sudo apt install gcc libc6-dev libsodium-dev make autoconf -y + + - name: Build project + working-directory: ${{ github.workspace }} + run: | + ./autogen.sh + ./configure + make + + - name: Generate domain name + working-directory: ${{ github.workspace }} + run: | + sudo ./mkp224o -n ${{ secrets.GEN_NUMBER }} -d /var/lib/tor/ ${{ secrets.DOMAIN_NAME }} diff --git a/README.md b/README.md index 396fe2c..f4c37de 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,10 @@ performance-related tips. ```bash docker run --rm -it -v $PWD:/keys ghcr.io/cathugger/mkp224o:master -d /keys neko ``` +### Now support Actions to Generate + +By define the Secret GEN_NUMBER and DOMAIN_NAME to generate your invidual name. + ### Acknowledgements & Legal