diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..ec6b8d8 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: Release + +on: + push: + tags: + - '*' + +jobs: + release: + # https://docs.github.com/en/packages/managing-github-packages-using-github-actions-workflows/publishing-and-installing-a-package-with-github-actions + permissions: + packages: write + contents: read + runs-on: ubuntu-latest + if: github.repository_owner == 'betadots' + steps: + - uses: actions/checkout@v3 + - name: Install Ruby 3.0 + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.0' + env: + BUNDLE_WITHOUT: release:development:rubocop + - name: Build gem + run: gem build --strict --verbose *.gemspec + - name: Publish gem to rubygems.org + run: gem push *.gem + env: + GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}' + - name: Setup GitHub packages access + run: | + mkdir -p ~/.gem + echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials + chmod 0600 ~/.gem/credentials + - name: Publish gem to GitHub packages + run: gem push --key github --host https://rubygems.pkg.github.com/betadots *.gem diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..abde2c9 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,19 @@ +# Changelog + +All notable changes to this project will be documented in this file. + +## [v0.1.0](https://github.com/betadots/smart_proxy_hdm/tree/v0.1.0) (2023-06-23) + +[Full Changelog](https://github.com/betadots/smart_proxy_hdm/compare/c382a2fad93c4c7db80a790b2877625eb1ad43a4...v0.1.0) + +**Merged pull requests:** + +- Introduce rubocop [\#5](https://github.com/betadots/smart_proxy_hdm/pull/5) ([bastelfreak](https://github.com/bastelfreak)) +- Set Ruby 2.7 as minimal version [\#4](https://github.com/betadots/smart_proxy_hdm/pull/4) ([bastelfreak](https://github.com/bastelfreak)) +- Add changelog generator [\#3](https://github.com/betadots/smart_proxy_hdm/pull/3) ([bastelfreak](https://github.com/bastelfreak)) +- Add basic CI matrix & dependencies: Add strict version boundaries [\#2](https://github.com/betadots/smart_proxy_hdm/pull/2) ([bastelfreak](https://github.com/bastelfreak)) +- Add dependabot configuration [\#1](https://github.com/betadots/smart_proxy_hdm/pull/1) ([bastelfreak](https://github.com/bastelfreak)) + + + +\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* diff --git a/Rakefile b/Rakefile index 7a11bf7..6404a22 100644 --- a/Rakefile +++ b/Rakefile @@ -19,7 +19,7 @@ rescue LoadError # github_changelog_generator is an optional group else GitHubChangelogGenerator::RakeTask.new :changelog do |config| - version = Voxpupuli::Release::VERSION + version = Proxy::Hdm::VERSION config.future_release = "v#{version}" if /^\d+\.\d+.\d+$/.match?(version) config.header = "# Changelog\n\nAll notable changes to this project will be documented in this file." config.exclude_labels = %w[duplicate question invalid wontfix wont-fix skip-changelog]