diff --git a/.github/workflows/auto release b/.github/workflows/auto release deleted file mode 100644 index 98d3731..0000000 --- a/.github/workflows/auto release +++ /dev/null @@ -1,2 +0,0 @@ -- name: Automatic Release -uses: marvinpinto/action-automatic-releases@v1.2.1 \ No newline at end of file diff --git a/.github/workflows/auto release.yml b/.github/workflows/auto release.yml new file mode 100644 index 0000000..fc2b3de --- /dev/null +++ b/.github/workflows/auto release.yml @@ -0,0 +1,26 @@ +# This is a basic workflow to help you get started with the GitHub Auto-Release on Commit Action. + +name: AutoRelease + +on: + push: + branches: [ master ] + +# 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" + release: + # The type of runner that the job will run on + runs-on: ubuntu-latest + + # Steps represent a sequence of tasks that will be executed as part of the job + steps: + - uses: actions/checkout@v2 + - uses: CupOfTea696/gh-action-auto-release@v1.0.0 + with: + title: "Release: $version" + tag: "v$semver" + draft: false + regex: "/^Release: #{semver}$/i" + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}