Skip to content

Commit 74b4141

Browse files
authored
#315 Automate release based on tag (#319)
* #315 Automate release based on tag * #315 Automate release based on tag * Fix swig installation on windows
1 parent 72a83c6 commit 74b4141

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed

.github/workflows/release.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Use Ruby
14+
uses: actions/setup-ruby@v1
15+
with:
16+
ruby-version: '2.6'
17+
architecture: 'x64'
18+
- name: Update gems
19+
run: |
20+
gem install bundler
21+
bundle install --jobs 4 --retry 3
22+
- name: Publish to rubygems.org
23+
env:
24+
RUBYGEMS_API_KEY: ${{secrets.INTERSCRIPT_RUBYGEMS_API_KEY}}
25+
run: |
26+
gem install gem-release
27+
touch ~/.gem/credentials
28+
cat > ~/.gem/credentials << EOF
29+
---
30+
:rubygems_api_key: ${RUBYGEMS_API_KEY}
31+
EOF
32+
chmod 0600 ~/.gem/credentials
33+
git status
34+
gem release

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
polling_interval_seconds: 5
6666
timeout_minutes: 5
6767
max_attempts: 3
68-
command: choco install --no-progress swig
68+
command: choco install --no-progress swig --version 4.0.1
6969

7070
- name: Update Sequitur
7171
run: |

0 commit comments

Comments
 (0)