Skip to content

Commit

Permalink
[chore] Renew github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iqiziqi committed Sep 17, 2024
1 parent 3779ff4 commit f894446
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup | Checkout
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Setup | Cache cargo
uses: actions/cache@v3
Expand All @@ -34,11 +34,20 @@ jobs:
with:
toolchain: stable

- name: Deploy | Package
- name: Deploy | Package ncmdump
run: cargo package --package ncmdump

- name: Deploy | List packaged files
- name: Deploy | List ncmdump packaged files
run: cargo package --package ncmdump --list

- name: Deploy | Publish
- name: Deploy | Publish npmdump
run: cargo publish --package ncmdump --token ${{secrets.crate_token}}

- name: Deploy | Package ncmdump-bin
run: cargo package --package ncmdump-bin

- name: Deploy | List ncmdump-bin packaged files
run: cargo package --package ncmdump-bin --list

- name: Deploy | Publish npmdump-bin
run: cargo publish --package ncmdump-bin --token ${{secrets.crate_token}}
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
run: tar czvf ${{ matrix.name }} -C target/${{ matrix.target }}/release ncmdump

- name: Release | Upload
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.name }}
path: ${{ matrix.name }}
Expand All @@ -83,7 +83,7 @@ jobs:
needs: [build]
steps:
- name: Setup | Download
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4

- name: Setup | CheckSum
run: |
Expand Down

0 comments on commit f894446

Please sign in to comment.