Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto release new minor versions #33

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
--- # 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*.*' ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

now we must explain to @vaisarger that will only trigerr when make a custom tag..

@vaisarger it means no release will be publised .. and only if you tagged will be publised


# only on defined branches
branches:
- 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
# 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

- 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
run: |
echo "Here you can do whatever you want in bash maybe?"

- uses: rymndhng/release-on-push-action@master # action used
with:
bump_version_scheme: minor # will raise version number [major minor patch no-release]