Skip to content

Commit

Permalink
Release v0.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AurevoirXavier committed Sep 10, 2024
1 parent e6fb60f commit a91085e
Show file tree
Hide file tree
Showing 8 changed files with 2,021 additions and 114 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@ jobs:
uses: vishnudxb/[email protected]
if: failure()
with:
repo: hack-ink/<NAME>
repo: hack-ink/auto-merge
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}
28 changes: 9 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,25 @@ jobs:
- name: Pack (macOS)
if: matrix.target.os == 'macos-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME> .
zip <NAME>-${{ matrix.target.name }}.zip <NAME>
mv target/${{ matrix.target.name }}/ci-release/auto-merge .
zip auto-merge-${{ matrix.target.name }}.zip auto-merge
- name: Pack (Windows)
if: matrix.target.os == 'windows-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>.exe .
Compress-Archive -Path <NAME>.exe -DestinationPath <NAME>-${{ matrix.target.name }}.zip
mv target/${{ matrix.target.name }}/ci-release/auto-merge.exe .
Compress-Archive -Path auto-merge.exe -DestinationPath auto-merge-${{ matrix.target.name }}.zip
- name: Pack (Linux)
if: matrix.target.os == 'ubuntu-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME> .
tar -czvf <NAME>-${{ matrix.target.name }}.tar.gz <NAME>
mv target/${{ matrix.target.name }}/ci-release/auto-merge .
tar -czvf auto-merge-${{ matrix.target.name }}.tar.gz auto-merge
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: <NAME>-${{ matrix.target.name }}
path: <NAME>-${{ matrix.target.name }}.*
name: auto-merge-${{ matrix.target.name }}
path: auto-merge-${{ matrix.target.name }}.*
retention-days: 1

# release:
# name: Release
# runs-on: ubuntu-latest
# steps:
# - name: Publish
# uses: softprops/action-gh-release@v2
# with:
# discussion_category_name: Announcements
# generate_release_notes: true

release:
name: Release
runs-on: ubuntu-latest
Expand All @@ -72,7 +62,7 @@ jobs:
- name: Hash
run: |
mkdir -p artifacts
mv <NAME>-*/* artifacts/
mv auto-merge-*/* artifacts/
cd artifacts
sha256sum * | tee ../SHA256
md5sum * | tee ../MD5
Expand Down
28 changes: 9 additions & 19 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,35 +31,25 @@ jobs:
- name: Pack (macOS)
if: matrix.target.os == 'macos-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME> .
zip <NAME>-${{ matrix.target.name }}.zip <NAME>
mv target/${{ matrix.target.name }}/ci-release/auto-merge .
zip auto-merge-${{ matrix.target.name }}.zip auto-merge
- name: Pack (Windows)
if: matrix.target.os == 'windows-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME>.exe .
Compress-Archive -Path <NAME>.exe -DestinationPath <NAME>-${{ matrix.target.name }}.zip
mv target/${{ matrix.target.name }}/ci-release/auto-merge.exe .
Compress-Archive -Path auto-merge.exe -DestinationPath auto-merge-${{ matrix.target.name }}.zip
- name: Pack (Linux)
if: matrix.target.os == 'ubuntu-latest'
run: |
mv target/${{ matrix.target.name }}/ci-release/<NAME> .
tar -czvf <NAME>-${{ matrix.target.name }}.tar.gz <NAME>
mv target/${{ matrix.target.name }}/ci-release/auto-merge .
tar -czvf auto-merge-${{ matrix.target.name }}.tar.gz auto-merge
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: <NAME>-${{ matrix.target.name }}
path: <NAME>-${{ matrix.target.name }}.*
name: auto-merge-${{ matrix.target.name }}
path: auto-merge-${{ matrix.target.name }}.*
retention-days: 1

# staging:
# name: Staging
# runs-on: ubuntu-latest
# steps:
# - name: Publish
# uses: softprops/action-gh-release@v2
# with:
# discussion_category_name: Announcements
# generate_release_notes: true

staging:
name: Staging
runs-on: ubuntu-latest
Expand All @@ -73,7 +63,7 @@ jobs:
- name: Hash
run: |
mkdir -p artifacts
mv <NAME>-*/* artifacts/
mv auto-merge-*/* artifacts/
cd artifacts
sha256sum * | tee ../SHA256
md5sum * | tee ../MD5
Expand Down
Loading

0 comments on commit a91085e

Please sign in to comment.