From 5c5e6405e469f8154184da51666f23e3547c9327 Mon Sep 17 00:00:00 2001 From: meghaniankov Date: Tue, 9 Jan 2024 13:13:13 +0000 Subject: [PATCH] uncomment rakefile --- .github/workflows/push.yaml | 2 +- .github/workflows/tag.yaml | 2 +- Rakefile | 7 +++---- 3 files changed, 5 insertions(+), 6 deletions(-) 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)'