Skip to content

Commit

Permalink
ci: Replace outdated actions
Browse files Browse the repository at this point in the history
  • Loading branch information
siketyan committed Dec 31, 2023
1 parent 91edcd0 commit a79311c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 17 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ updates:
directory: '/'
schedule:
interval: weekly

- package-ecosystem: docker
directory: '/'
schedule:
interval: weekly

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
26 changes: 9 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
checks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

Expand Down Expand Up @@ -66,7 +66,7 @@ jobs:
cargo: cross
runs-on: ${{ matrix.host }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true

Expand Down Expand Up @@ -94,8 +94,9 @@ jobs:
- name: Compress artifacts into .tar.gz file
run: tar -C ./target/${{ matrix.target }}/release -czf ghr-${{ matrix.target }}.tar.gz ${{ matrix.artifact }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ghr-${{ matrix.target }}
path: ghr-${{ matrix.target }}.tar.gz

- uses: svenstaro/upload-release-action@v2
Expand All @@ -110,35 +111,26 @@ jobs:
needs:
- checks
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: Swatinem/rust-cache@v2

- name: Install latest stable
uses: ructions/toolchain@v2
with:
toolchain: stable
override: true
uses: dtolnay/rust-toolchain@stable

- name: Log into crates.io
uses: ructions/cargo@v1
with:
command: login
args: ${{ secrets.CRATES_IO_TOKEN }}
run: cargo login '${{ secrets.CRATES_IO_TOKEN }}

- name: Publish to crates.io
uses: ructions/cargo@v1
with:
command: publish
args: --allow-dirty
run: cargo publish --allow-dirty

brew:
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'release' }}
needs:
- build
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Release to Homebrew Tap
uses: siketyan/release-to-registry-action@7e2a91ef78e61dccdb2e8b9401ae54ec58fab4fc
Expand Down

0 comments on commit a79311c

Please sign in to comment.