Skip to content

Commit 49396aa

Browse files
authored
Push to rubygems on github tag (#25)
* Create gem-push.yml * add instructions about releases * remove redundant writing of env var and fix ruby version
1 parent b6cbabf commit 49396aa

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.github/workflows/gem-push.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruby Gem
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
name: Build + Publish
10+
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
packages: write
14+
15+
steps:
16+
- uses: actions/checkout@v2
17+
- name: Set up Ruby 2.3
18+
uses: actions/setup-ruby@v1
19+
with:
20+
ruby-version: 2.3.x
21+
22+
- name: Publish to RubyGems
23+
run: |
24+
gem build *.gemspec
25+
gem push *.gem
26+
env:
27+
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,17 @@ docker-compose run app bundle exec rspec spec
180180

181181
## Tests
182182

183+
Tests must be written for new lines of code added as part of a pull request and the test suite must pass. If creating new cassettes, consider updating the hardcoded moodle token and url parameters throughout the suite. They can also be configured with environment variables.
184+
183185
You will need to set some environment variables to create new cassettes. We build using MAMP https://www.mamp.info/en/ so it might be
184186

185187
```
186188
export MOODLE_URL=http://localhost:8888/moodle29/
187189
export MOODLE_TOKEN=87b95af2df709fa60b395b5c59a3fc2e
188190
```
191+
192+
## Deployment
193+
194+
The gem is automatically published when a new release is created on github. If there is an issue or a new release is required, please contact one of the maintainers
195+
196+
- Jordan Huizenga ([email protected])

0 commit comments

Comments
 (0)