Skip to content

Commit 6aa3062

Browse files
authored
Merge pull request #25 from appwrite/dev
Add GitHub action for publishing
2 parents db9ee84 + 4cad677 commit 6aa3062

File tree

3 files changed

+29
-17
lines changed

3 files changed

+29
-17
lines changed

.github/workflows/publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Publish to RubyGems
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
name: Release build and publish
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out code
12+
uses: actions/checkout@v4
13+
14+
- name: Set up Ruby
15+
uses: ruby/setup-ruby@v1
16+
with:
17+
ruby-version: 2.7
18+
bundler-cache: true
19+
20+
- name: Set up RubyGems
21+
run: |
22+
cat "---\n:rubygems_api_key: ${{ secrets.RUBYGEMS_TOKEN }}\n" > ~/.gem/credentials
23+
chmod 0600 ~/.gem/credentials
24+
25+
- name: Build gem
26+
run: gem build appwrite.gemspec
27+
28+
- name: Publish gem
29+
run: gem push appwrite-*.gem

.travis.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

lib/appwrite/enums/name.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module Name
1313
V1_BUILDS = 'v1-builds'
1414
V1_MESSAGING = 'v1-messaging'
1515
V1_MIGRATIONS = 'v1-migrations'
16-
HAMSTERV1 = 'hamsterv1'
1716
end
1817
end
1918
end

0 commit comments

Comments
 (0)