Skip to content

Commit

Permalink
Merge pull request #2298 from znz/merge-rake-and-artifact
Browse files Browse the repository at this point in the history
Merge rake and artifact
  • Loading branch information
znz authored Jun 25, 2020
2 parents 96397f8 + dbe80b9 commit 8558686
Showing 1 changed file with 2 additions and 23 deletions.
25 changes: 2 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,27 +23,6 @@ jobs:
- name: Run rake
run: bundle exec rake

artifact:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
if: "!contains(github.event.head_commit.message, '[ci skip]')"

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
# docs.ruby-lang.org uses snap ruby
# https://snapcraft.io/ruby
ruby-version: 2.7
- name: Install dependencies
run: bundle install
- name: Run rake
run: bundle exec rake

- name: Create tarballs
if: ${{ runner.os != 'Windows' }}
run: |
Expand All @@ -63,7 +42,7 @@ jobs:
}
- uses: actions/upload-artifact@v2
with:
name: statichtml-${{ matrix.os }}
name: statichtml-${{ matrix.os }}-${{ matrix.ruby }}
path: /tmp/artifact/2.?.0.tar.xz

- name: Rename generated html
Expand All @@ -85,7 +64,7 @@ jobs:
git diff --no-index html.base html.pr --output artifact/html.diff || :
- uses: actions/upload-artifact@v2
with:
name: diff-${{ matrix.os }}
name: diff-${{ matrix.os }}-${{ matrix.ruby }}
path: /tmp/artifact/html.diff

misspell:
Expand Down

0 comments on commit 8558686

Please sign in to comment.