This repository was archived by the owner on Jul 9, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +46
-71
lines changed Expand file tree Collapse file tree 3 files changed +46
-71
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ name : Git Release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - " v[0-9]+.[0-9]+.[0-9]+"
7
+ workflow_dispatch :
8
+
9
+ jobs :
10
+ Git_Release :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - uses : actions/checkout@v3
14
+ - name : Github Release
15
+ uses : anton-yurchenko/git-release@v5.0
16
+ env :
17
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN}}
18
+ DRAFT_RELEASE : " false"
19
+ PRE_RELEASE : " false"
20
+ CHANGELOG_FILE : " CHANGELOG.md"
21
+ ALLOW_EMPTY_CHANGELOG : " true"
22
+
23
+ deploy_prod :
24
+ environment :
25
+ name : production_feeds
26
+ runs-on : ubuntu-latest
27
+ needs : [build]
28
+ steps :
29
+ - uses : actions/checkout@v3
30
+ - uses : ruby/setup-ruby@v1
31
+ with :
32
+ ruby-version : ' 3.1'
33
+ bundler-cache : true # runs 'bundle install' and caches installed gems automatically
34
+ bundler : ' latest'
35
+ cache-version : 1
36
+ - run : bundle exec rake
37
+ - name : Publish to RubyGems
38
+ run : |
39
+ mkdir -p $HOME/.gem
40
+ touch $HOME/.gem/credentials
41
+ chmod 0600 $HOME/.gem/credentials
42
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
43
+ gem build *.gemspec
44
+ gem push *.gem
45
+ env :
46
+ GEM_HOST_API_KEY : " ${{secrets.RUBYGEMS_AUTH_TOKEN}}"
Original file line number Diff line number Diff line change 32
32
path : |
33
33
./Gemfile.lock
34
34
./README.md
35
- deploy :
36
- if : ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
37
- environment :
38
- name : staging_feeds
39
- runs-on : ubuntu-latest
40
- needs : [build]
41
- steps :
42
- - uses : actions/checkout@v3
43
- - uses : ruby/setup-ruby@v1
44
- with :
45
- ruby-version : ' 3.1'
46
- bundler-cache : true # runs 'bundle install' and caches installed gems automatically
47
- bundler : ' latest'
48
- cache-version : 1
49
- - run : bundle exec rake
50
- - name : Publish to GPR
51
- run : |
52
- mkdir -p $HOME/.gem
53
- touch $HOME/.gem/credentials
54
- chmod 0600 $HOME/.gem/credentials
55
- printf -- "---\n:github: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
56
- gem build *.gemspec
57
- gem push --KEY github --host https://rubygems.pkg.github.com/${OWNER} *.gem
58
- env :
59
- GEM_HOST_API_KEY : " Bearer ${{secrets.PUBLISH_GH_TOKEN}}"
60
- OWNER : ${{ github.repository_owner }}
61
- # deploy_prod:
62
- # if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
63
- # environment:
64
- # name: production_feeds
65
- # runs-on: ubuntu-latest
66
- # needs: [build]
67
- # steps:
68
- # - uses: actions/checkout@v3
69
- # - uses: ruby/setup-ruby@v1
70
- # with:
71
- # ruby-version: '3.1'
72
- # bundler-cache: true # runs 'bundle install' and caches installed gems automatically
73
- # - run: bundle exec rake
74
- # - name: Publish to RubyGems
75
- # run: |
76
- # mkdir -p $HOME/.gem
77
- # touch $HOME/.gem/credentials
78
- # chmod 0600 $HOME/.gem/credentials
79
- # printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
80
- # gem build *.gemspec
81
- # gem push *.gem
82
- # env:
83
- # GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}" TODO: Token for rubyGems.org
84
-
You can’t perform that action at this time.
0 commit comments