generated from hack-ink/rust-initializer
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Xavier Lau <[email protected]>
- Loading branch information
Showing
23 changed files
with
4,231 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,6 @@ jobs: | |
uses: vishnudxb/[email protected] | ||
if: failure() | ||
with: | ||
repo: hack-ink/<NAME> | ||
repo: hack-ink/air | ||
workflow_id: ${{ github.run_id }} | ||
access_token: ${{ github.token }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,28 +32,18 @@ jobs: | |
run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }} | ||
- name: Compress | ||
run: | | ||
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }} | ||
mv target/${{ matrix.target.name }}/ci-release/air${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o air-${{ matrix.target.name }}.zst air${{ matrix.target.extension }} | ||
- name: Collect artifact | ||
run: | | ||
mkdir -p artifacts | ||
mv <NAME>-${{ matrix.target.name }}.zst artifacts | ||
mv air-${{ matrix.target.name }}.zst artifacts | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
discussion_category_name: Announcements | ||
generate_release_notes: true | ||
|
||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
|
@@ -89,17 +79,6 @@ jobs: | |
- name: Publish | ||
run: cargo publish --locked | ||
|
||
publish-on-crates-io: | ||
name: Publish on crates.io | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch latest code | ||
uses: actions/checkout@v4 | ||
- name: Login | ||
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
- name: Publish | ||
run: .maintain/release.sh | ||
|
||
clean-artifacts: | ||
name: Clean artifacts | ||
if: always() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,28 +30,18 @@ jobs: | |
run: cargo build --profile ci-release --locked --target ${{ matrix.target.name }} | ||
- name: Compress | ||
run: | | ||
mv target/${{ matrix.target.name }}/ci-release/<NAME>${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o <NAME>-${{ matrix.target.name }}.zst <NAME>${{ matrix.target.extension }} | ||
mv target/${{ matrix.target.name }}/ci-release/air${{ matrix.target.extension }} . | ||
zstd --ultra -22 -o air-${{ matrix.target.name }}.zst air${{ matrix.target.extension }} | ||
- name: Collect artifact | ||
run: | | ||
mkdir -p artifacts | ||
mv <NAME>-${{ matrix.target.name }}.zst artifacts | ||
mv air-${{ matrix.target.name }}.zst artifacts | ||
- name: Upload artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: artifacts | ||
path: artifacts | ||
|
||
staging: | ||
name: Staging | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Publish | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
discussion_category_name: Announcements | ||
generate_release_notes: true | ||
|
||
staging: | ||
name: Staging | ||
runs-on: ubuntu-latest | ||
|
@@ -69,12 +59,12 @@ jobs: | |
md5sum * | tee ../MD5 | ||
mv ../SHA256 . | ||
mv ../MD5 . | ||
- name: Publish | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
discussion_category_name: Announcements | ||
generate_release_notes: true | ||
files: artifacts/* | ||
# - 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 | ||
|
@@ -87,17 +77,6 @@ jobs: | |
# - name: Publish | ||
# run: cargo publish --locked | ||
|
||
# publish-on-crates-io: | ||
# name: Publish on crates.io | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Fetch latest code | ||
# uses: actions/checkout@v4 | ||
# - name: Login | ||
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
# - name: Publish | ||
# run: .maintain/release.sh | ||
|
||
clean-artifacts: | ||
name: Clean artifacts | ||
if: always() | ||
|
Oops, something went wrong.