diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 2fec1b4..71835d2 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -61,5 +61,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 2163c89..5846f1c 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 }}" diff --git a/Rakefile b/Rakefile index 91348b5..0c8fe3f 100644 --- a/Rakefile +++ b/Rakefile @@ -17,10 +17,9 @@ end desc 'Push gem to rubygems' task :push do - sh("echo pkg/terrafying-components-#{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-components-#{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-components-#{terrafying_version}.gem") end desc 'Update the version for terrafying-components to GHA_TERRAFYING_VERSION. (0.0.0 if GHA_TERRAFYING_VERSION not set)'