diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index dae657b..42617fe 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -32,8 +32,6 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./path/to/asset.zip - asset_name: asset.zip asset_content_type: application/zip - name: Publish release uses: StuYarrow/publish-release@v1.1.2 diff --git a/Makefile b/Makefile index 9a9bef7..2d9a17a 100644 --- a/Makefile +++ b/Makefile @@ -49,18 +49,24 @@ increment_sub_version: sed -i "s/$(VERSION)/$(UPDATE_SUB_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml git add ./*.md ./mysqltuner.pl git commit -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)" + git tag -a v$(UPDATE_SUB_VERSION) -m "Generate $(UPDATE_SUB_VERSION) sub version at $(shell date --iso=seconds)" + git push --tags increment_minor_version: @echo "Incrementing minor version from $(VERSION) to $(UPDATE_MINOR_VERSION)" sed -i "s/$(VERSION)/$(UPDATE_MINOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml git add ./*.md ./mysqltuner.pl - git commit -m "Generate $(UPDATE_SUB_VERSION) minor version at $(shell date --iso=seconds)" + git commit -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)" + git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MINOR_VERSION) minor version at $(shell date --iso=seconds)" + git push --tags increment_major_version: @echo "Incrementing major version from $(VERSION) to $(UPDATE_MAJOR_VERSION)" sed -i "s/$(VERSION)/$(UPDATE_MAJOR_VERSION)/" mysqltuner.pl *.md .github/workflows/*.yml git add ./*.md ./mysqltuner.pl git commit -m "Generate $(UPDATE_SUB_VERSION) major version at $(shell date --iso=seconds)" + git tag -a v$(UPDATE_MINOR_VERSION) -m "Generate $(UPDATE_MAJOR_VERSION) major version at $(shell date --iso=seconds)" + git push --tags push: git push \ No newline at end of file