From 99894120ca8f9eed2b001f6c39bd910591520322 Mon Sep 17 00:00:00 2001 From: zenobit Date: Wed, 28 Feb 2024 19:14:03 +0100 Subject: [PATCH 1/7] Create auto-release.yml #3 --- .github/workflows/auto-release.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/auto-release.yml diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml new file mode 100644 index 0000000..0a51411 --- /dev/null +++ b/.github/workflows/auto-release.yml @@ -0,0 +1,16 @@ +on: + push: + branches: + - master + + workflow_dispatch: + +jobs: + release-on-push: + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: rymndhng/release-on-push-action@master + with: + bump_version_scheme: minor From 6e8282520d59f460fcbb245c18ae2f62dd64c767 Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 29 Feb 2024 20:23:25 +0100 Subject: [PATCH 2/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 0a51411..fa9c841 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,16 +1,17 @@ on: push: branches: - - master + - master # will run on master branch only + # - dev # if unncomment will run also on dev branch - workflow_dispatch: + workflow_dispatch: # workflow could be triggered manually jobs: - release-on-push: - runs-on: ubuntu-latest + release-on-push: # release if pushed to choosed branches + runs-on: ubuntu-latest # will pull ubuntu image to work with env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - steps: - - uses: rymndhng/release-on-push-action@master + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if some environment variables or permissions are needed + steps: # Add all your steps + - uses: rymndhng/release-on-push-action@master # action used with: - bump_version_scheme: minor + bump_version_scheme: minor # will raise version number [major minor patch no-release] From 392e505a7b6a43715058869a3516c495e6133c7f Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 29 Feb 2024 22:10:49 +0100 Subject: [PATCH 3/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 48 +++++++++++++++++++++++++----- 1 file changed, 41 insertions(+), 7 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index fa9c841..5ac94ee 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -1,17 +1,51 @@ -on: +--- # autorelease yml file for easybashgui + +name: auto release ebg # named it + +# Controls when the action will run +on: # will trigger + + # Build at 00:00 on every 12th day-of-month. + #schedule: + # - cron: "0 0 */12 * *" + + # Triggers the workflow on push or pull request events but only for the master branch push: + #branches: '**' #'!master' # excludes master + #paths-ignore: [ '**/README.md' ] + #pull_request: + #branches: '**' # matches every branch + #paths-ignore: [ '**/README.md' ] + + # Triggers the workflow if matching tag is created + tags: [ 'v*.*' ] + + # only on defined branches branches: - - master # will run on master branch only - # - dev # if unncomment will run also on dev branch - - workflow_dispatch: # workflow could be triggered manually + - master # on master branch only + #- dev # if unncomment will run also on dev branch + + # 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 "release-on-push" release-on-push: # release if pushed to choosed branches - runs-on: ubuntu-latest # will pull ubuntu image to work with + # The type of runner that the job will run on + runs-on: ubuntu-latest # will pull ubuntu image to work with or [ self-hosted ] env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # if some environment variables or permissions are needed + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Add all your steps + + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it + - uses: actions/checkout@v3 + - name: Prerequisites + run: | + echo "Hello world!" + - uses: rymndhng/release-on-push-action@master # action used with: - bump_version_scheme: minor # will raise version number [major minor patch no-release] + bump_version_scheme: minor # will raise version number [major minor patch no-release] + From bde12324dca2792cad6d94c38c56bd270e349884 Mon Sep 17 00:00:00 2001 From: zenobit Date: Thu, 29 Feb 2024 22:14:26 +0100 Subject: [PATCH 4/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 5ac94ee..8658e40 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -39,6 +39,12 @@ jobs: # Steps represent a sequence of tasks that will be executed as part of the job steps: # Add all your steps + - name: test bash in github action + id: bash-test + shell: bash + run: | + echo "GIT_TOKEN=${{ steps.generate_token.outputs.token }}" + # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - uses: actions/checkout@v3 - name: Prerequisites From a53408946a70284c0ba63b8b0b26ea641b088cca Mon Sep 17 00:00:00 2001 From: zenobit Date: Wed, 13 Mar 2024 14:03:15 +0100 Subject: [PATCH 5/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 8658e40..8a31b3a 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -18,7 +18,7 @@ on: # will trigger #paths-ignore: [ '**/README.md' ] # Triggers the workflow if matching tag is created - tags: [ 'v*.*' ] + tags: [ '*.*.*' ] # only on defined branches branches: @@ -49,7 +49,7 @@ jobs: - uses: actions/checkout@v3 - name: Prerequisites run: | - echo "Hello world!" + echo "Here you can do whatever you want in bash maybe?" - uses: rymndhng/release-on-push-action@master # action used with: From 52e986fe3a84b35d83640d0da6c48f27db17bbfa Mon Sep 17 00:00:00 2001 From: zenobit Date: Wed, 13 Mar 2024 14:06:59 +0100 Subject: [PATCH 6/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 8a31b3a..13204fc 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -18,7 +18,7 @@ on: # will trigger #paths-ignore: [ '**/README.md' ] # Triggers the workflow if matching tag is created - tags: [ '*.*.*' ] + tags: [ 'v*.*' ] # only on defined branches branches: From 006fad606d4a49e2173126443efa3e5a2c24d0d9 Mon Sep 17 00:00:00 2001 From: zenobit Date: Wed, 13 Mar 2024 14:12:40 +0100 Subject: [PATCH 7/7] Update auto-release.yml --- .github/workflows/auto-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 13204fc..5521f98 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -3,7 +3,7 @@ name: auto release ebg # named it # Controls when the action will run -on: # will trigger +# on: # will trigger # Build at 00:00 on every 12th day-of-month. #schedule: