Skip to content

Commit

Permalink
Release v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mtsmfm committed Jan 19, 2025
1 parent fe391c4 commit f8a8262
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 46 deletions.
60 changes: 16 additions & 44 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,53 +66,25 @@ jobs:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
needs: [test-artifact]
runs-on: ubuntu-latest
steps:
- id: create-release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- run: |
echo '${{ steps.create-release.outputs.upload_url }}' > release_upload_url.txt
- uses: actions/upload-artifact@v4
with:
name: create-release
path: release_upload_url.txt

upload-release:
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
strategy:
matrix:
target:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- x86_64-apple-darwin
- aarch64-apple-darwin
include:
- target: x86_64-pc-windows-gnu
extension: .exe
needs: [create-release]
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
with:
name: create-release
- id: upload-url
run: |
echo "url=$(cat create-release/release_upload_url.txt)" >> $GITHUB_OUTPUT
- uses: actions/download-artifact@v4
with:
name: build-${{ matrix.target }}
- run: find .
- uses: actions/upload-release-asset@v1
path: build
pattern: build-*
- run: |
for dir in build/*; do
if [ -f $dir/split-test.exe ]; then
mv $dir/split-test.exe split-test-${dir##build/build-}.exe
else
mv $dir/split-test split-test-${dir##build/build-}
fi
done
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.upload-url.outputs.url }}
asset_path: build-${{ matrix.target }}/split-test${{ matrix.extension }}
asset_name: split-test-${{ matrix.target }}${{ matrix.extension }}
asset_content_type: application/octet-stream
name: Release ${{ github.ref_name }}
draft: false
prerelease: false
files: |
split-test-*
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 1.0.1

- Add arm binaries

## 1.0.0

- Support cypress (mocha) format (mocha-junit-reporter)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "split-test"
version = "1.0.0"
version = "1.0.1"
authors = ["Fumiaki MATSUSHIMA <[email protected]>"]
edition = "2018"

Expand Down

0 comments on commit f8a8262

Please sign in to comment.