From 064be9c4e73889168aaef5539b667513b0179f4e Mon Sep 17 00:00:00 2001 From: liudonghua123 Date: Tue, 26 Jan 2021 10:30:43 +0800 Subject: [PATCH 1/3] add a build and deploy ci --- .github/workflows/build.yml | 60 +++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..1e263d1 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,60 @@ +# This is a basic workflow to help you get started with Actions + +name: CI + +# Controls when the action will run. +on: + # Triggers the workflow on push or pull request events but only for the master branch + push: + branches: [ master ] + tags: + - '*' + pull_request: + branches: [ master ] + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +# A workflow run is made up of one or more jobs that can run sequentially or in parallel +jobs: + # This workflow contains a single job called "build" + build: + # The type of runner that the job will run on + runs-on: windows-latest + if: contains(github.ref, 'tags') + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v2 + + # Setup autoit environment + - uses: liudonghua123/action-setup-autoit@main + + # Runs build + - name: Run build + shell: cmd + run: | + "C:\Program Files (x86)\AutoIt3\AutoIt3.exe" "C:\Program Files (x86)\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3" /in MyChrome.au3 /NoStatus + + # Check the output + - name: Check the output + shell: bash + run: | + ls -l + + # Package the binaries + - name: Package the binaries + shell: bash + run: | + 7z a -tzip MyChrome.zip MyChrome.exe MyChrome_x64.exe + + # Deploy to the github release + - uses: xresloader/upload-to-github-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + file: MyChrome.zip + tags: true + draft: false + overwrite: true From 040e0e3998ee4271addf59899874ecf5e41bb57a Mon Sep 17 00:00:00 2001 From: liudonghua123 Date: Tue, 26 Jan 2021 13:09:36 +0800 Subject: [PATCH 2/3] disable Au3Stripper for ci temporary --- MyChrome.au3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyChrome.au3 b/MyChrome.au3 index 325366d..39bedb5 100644 --- a/MyChrome.au3 +++ b/MyChrome.au3 @@ -8,7 +8,7 @@ #AutoIt3Wrapper_Res_LegalCopyright=甲壳虫 #AutoIt3Wrapper_Res_Language=1033 #AutoIt3Wrapper_AU3Check_Parameters=-q -#AutoIt3Wrapper_Run_Au3Stripper=y +#AutoIt3Wrapper_Run_Au3Stripper=n #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include From ec279ccfbd23d9ca824461d46c751671c6759e6d Mon Sep 17 00:00:00 2001 From: liudonghua123 Date: Tue, 26 Jan 2021 20:19:44 +0800 Subject: [PATCH 3/3] Revert "disable Au3Stripper for ci temporary" This reverts commit 040e0e3998ee4271addf59899874ecf5e41bb57a. --- MyChrome.au3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyChrome.au3 b/MyChrome.au3 index 39bedb5..325366d 100644 --- a/MyChrome.au3 +++ b/MyChrome.au3 @@ -8,7 +8,7 @@ #AutoIt3Wrapper_Res_LegalCopyright=甲壳虫 #AutoIt3Wrapper_Res_Language=1033 #AutoIt3Wrapper_AU3Check_Parameters=-q -#AutoIt3Wrapper_Run_Au3Stripper=n +#AutoIt3Wrapper_Run_Au3Stripper=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #include