diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..bfbb566 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,40 @@ +name: Deploy + +on: + push: + tags: + - 'v*' + +permissions: write-all + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Get version + run: | + git fetch --unshallow + git fetch origin --tags --force + OLD_VERSION=$(git describe --tags --abbrev=0 --match "v*" ${{ github.ref }}^) + echo "OLD_VERSION=$OLD_VERSION" >> $GITHUB_ENV + + - name: Find commits since previous version + run: | + { + echo 'MESSAGES<> "$GITHUB_ENV" + + - name: Create draft release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: ${{ github.ref }} + release_name: ${{ github.ref }} + body: ${{ env.MESSAGES }} + draft: true diff --git a/Gemfile.lock b/Gemfile.lock index 849fb1f..774f8c7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - enparallel-bin (1.1.0) + enparallel-bin (1.1.1) colorize (~> 0.8.1) docopt (~> 0.6.1) json (~> 2.7) diff --git a/lib/enparallel/version.rb b/lib/enparallel/version.rb index c8fca8f..6ede4fc 100644 --- a/lib/enparallel/version.rb +++ b/lib/enparallel/version.rb @@ -1,3 +1,3 @@ module Enparallel - VERSION = '1.1.0' + VERSION = '1.1.1' end