diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 7c5f06d..b829737 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -63,5 +63,5 @@ jobs: with: context: . labels: ${{ steps.meta.outputs.labels }} - push: false + push: true tags: ${{ steps.meta.outputs.tags }} \ No newline at end of file diff --git a/.github/workflows/tag.yaml b/.github/workflows/tag.yaml index 9f782b1..7c48e8c 100644 --- a/.github/workflows/tag.yaml +++ b/.github/workflows/tag.yaml @@ -73,6 +73,6 @@ jobs: with: context: . labels: ${{ steps.meta.outputs.labels }} - push: false + push: true tags: ${{ steps.meta.outputs.tags }} build-args: "TERRAFYING_VERSION=${{ github.ref_name }}" \ No newline at end of file diff --git a/Rakefile b/Rakefile index 07716fc..06a2e49 100644 --- a/Rakefile +++ b/Rakefile @@ -17,10 +17,9 @@ end desc 'Push gem to rubygems' task :push do - sh("echo pkg/terrafying-#{terrafying_version}.gem") - # gem_config = { rubygems_api_key: rubygems_api_key }.to_yaml - # File.open('.gemconfig', 'w') { |file| file.write(gem_config) } - # sh("gem push --config-file .gemconfig pkg/terrafying-#{terrafying_version}.gem") + gem_config = { rubygems_api_key: rubygems_api_key }.to_yaml + File.open('.gemconfig', 'w') { |file| file.write(gem_config) } + sh("gem push --config-file .gemconfig pkg/terrafying-#{terrafying_version}.gem") end desc 'Update the version for terrafying to DRONE_TAG. (0.0.0 if DRONE_TAG not set)'