File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : ubuntu
1+ name : test
22
33on : [push, pull_request]
44
@@ -11,10 +11,29 @@ jobs:
1111 os : [ ubuntu-latest, macos-latest, windows-latest ]
1212 runs-on : ${{ matrix.os }}
1313 steps :
14+ - name : git config
15+ run : |
16+ git config --global core.autocrlf false
17+ git config --global core.eol lf
18+ git config --global advice.detachedHead 0
1419 - uses : actions/checkout@master
1520 - name : Set up Ruby
1621 uses : ruby/setup-ruby@v1
1722 with :
1823 ruby-version : ${{ matrix.ruby }}
1924 - name : Run test
2025 run : rake test
26+ - id : build
27+ run : |
28+ rake build
29+ echo "::set-output name=pkg::${GITHUB_REPOSITORY#*/}-${RUNNING_OS%-*}"
30+ env :
31+ RUNNING_OS : ${{matrix.os}}
32+ if : " matrix.ruby == '3.0'"
33+ shell : bash
34+ - name : Upload package
35+ uses : actions/upload-artifact@v2
36+ with :
37+ path : pkg/*.gem
38+ name : ${{steps.build.outputs.pkg}}
39+ if : steps.build.outputs.pkg
You can’t perform that action at this time.
0 commit comments