diff --git a/.github/workflows/on_push.yml b/.github/workflows/on_push.yml new file mode 100644 index 0000000..a7a339d --- /dev/null +++ b/.github/workflows/on_push.yml @@ -0,0 +1,27 @@ +name: Create a new release +on: + push: + branches: + - main +jobs: + create_release: + name: Bump tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.3.0 + with: + fetch-depth: '0' + persist-credentials: false + - name: Bump version and push tag + uses: anothrNick/github-tag-action@1.61.0 + id: tag_version + env: + GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }} + WITH_V: true + DEFAULT_BUMP: patch + - name: Create Release + uses: ncipollo/release-action@v1.12.0 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: Release ${{ steps.tag_version.outputs.new_tag }} + token: ${{ secrets.ACTIONS_TOKEN }} diff --git a/copier.yml b/copier.yml index 0ffb306..a932145 100644 --- a/copier.yml +++ b/copier.yml @@ -1 +1,3 @@ _answers_relpath: ".copier-answers.yml" +_exclude: + - .github