Skip to content

Commit

Permalink
Various fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
wilsonzlin committed Dec 23, 2023
1 parent 82b2fb0 commit 7df6883
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- uses: actions/checkout@v1

- name: Patches
shell: bash
run: |
# Maturin uses Cargo.toml name for Python name: https://www.maturin.rs/#usage.
# We edit it here instead of just updating our repo code as Cargo workspace names must be different.
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ jobs:
members = ["ext/minify_html"]
EOD
cp ./README.md ./minify-html-ruby/.
# https://github.com/oxidize-rb/actions/tree/main/cross-gem
- name: Set up Ruby and Rust
uses: oxidize-rb/actions/setup-ruby-and-rust@main
Expand Down Expand Up @@ -74,21 +76,20 @@ jobs:
- name: Download built libraries
uses: actions/download-artifact@v4
with:
path: ./minify-html-ruby/lib
path: ./minify-html-ruby/pkg
merge-multiple: true

- name: Pack and publish gem
working-directory: ./minify-html-ruby
run: |
cp ../README.md .
gem build minify_html.gemspec
mkdir -p "$HOME/.gem"
cat << 'EOF' > "$HOME/.gem/credentials"
---
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
EOF
chmod 0600 "$HOME/.gem/credentials"
if [[ "${{ steps.version.outputs.VERSION }}" != "0.0.0" ]]; then
gem push minify_html-${{ steps.version.outputs.VERSION }}.gem
gem push pkg/*.gem
else
tree
fi

0 comments on commit 7df6883

Please sign in to comment.