diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml new file mode 100644 index 0000000..fb1699e --- /dev/null +++ b/.github/workflows/bump.yml @@ -0,0 +1,20 @@ +name: Bump version +on: + push: + branches: + - main +jobs: + + tag: + name: Create tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: '0' + + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.61.0 + env: + GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} + WITH_V: false diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..0242e2a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,16 @@ +name: Release + +on: + push: + tags: + - "*.*.*" + +jobs: + build: + name: Create release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Release + uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/tag-and-relise.yml b/.github/workflows/tag-and-relise.yml deleted file mode 100644 index 9bc1776..0000000 --- a/.github/workflows/tag-and-relise.yml +++ /dev/null @@ -1,15 +0,0 @@ -name: Bump version -on: - push: - branches: - - master -jobs: - build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@master - - name: Bump version and push tag - uses: anothrNick/github-tag-action@master - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - REPO_OWNER: anothrNick