Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Commit

Permalink
Release v0.2.1
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lau <[email protected]>
  • Loading branch information
AurevoirXavier committed Jan 23, 2024
1 parent 9a84b68 commit ea32545
Show file tree
Hide file tree
Showing 10 changed files with 823 additions and 912 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,28 +34,24 @@ jobs:
run: |
mv target/${{ matrix.target.name }}/ci-release/slothunter${{ matrix.target.extension }} .
zstd --ultra -22 -o slothunter-${{ matrix.target.name }}.zst slothunter${{ matrix.target.extension }}
- name: Collect artifact
run: |
mkdir -p artifacts
mv slothunter-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts
name: slothunter-${{ matrix.target.name }}
path: slothunter-${{ matrix.target.name }}.zst
retention-days: 1

release:
name: Release
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: artifacts
path: artifacts
uses: actions/download-artifact@v4
- name: Hash
run: |
mkdir -p artifacts
mv slothunter-*/* artifacts/
cd artifacts
sha256sum * | tee ../SHA256
md5sum * | tee ../MD5
Expand All @@ -78,14 +74,3 @@ jobs:
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Publish
run: cargo publish --locked

clean-artifacts:
name: Clean artifacts
if: always()
needs: [release]
steps:
- name: Clean artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: artifacts
runs-on: ubuntu-latest
33 changes: 14 additions & 19 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,33 +32,39 @@ jobs:
run: |
mv target/${{ matrix.target.name }}/ci-release/slothunter${{ matrix.target.extension }} .
zstd --ultra -22 -o slothunter-${{ matrix.target.name }}.zst slothunter${{ matrix.target.extension }}
- name: Collect artifact
run: |
mkdir -p artifacts
mv slothunter-${{ matrix.target.name }}.zst artifacts
- name: Upload artifact
uses: actions/upload-artifact@v3.1.3
uses: actions/upload-artifact@v4
with:
name: artifacts
path: artifacts
name: slothunter-${{ matrix.target.name }}
path: slothunter-${{ matrix.target.name }}.zst
retention-days: 1

staging:
name: Staging
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: artifacts
path: artifacts
- name: Hash
run: |
mkdir -p artifacts
mv slothunter-*/* artifacts/
cd artifacts
sha256sum * | tee ../SHA256
md5sum * | tee ../MD5
mv ../SHA256 .
mv ../MD5 .
ls -al
# - name: Publish
# uses: softprops/action-gh-release@v1
# with:
# discussion_category_name: Announcements
# generate_release_notes: true
# files: artifacts/*

# publish-on-crates-io:
# name: Publish on crates.io
Expand All @@ -70,14 +76,3 @@ jobs:
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
# - name: Publish
# run: cargo publish --locked

clean-artifacts:
name: Clean artifacts
if: always()
needs: [staging]
steps:
- name: Clean artifacts
uses: geekyeggo/delete-artifact@v2
with:
name: artifacts
runs-on: ubuntu-latest
Loading

0 comments on commit ea32545

Please sign in to comment.