Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Veha0001 authored Jan 6, 2025
1 parent 11d46ec commit 877fddc
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: CI

on: [push, pull_request]
on: push
permissions:
contents: write

jobs:
build:
Expand All @@ -9,8 +11,8 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Restore cache
uses: actions/cache/restore@v4
- name: Cargo Caches
uses: actions/cache@v4
with:
path: |
~/.cargo
Expand All @@ -34,12 +36,13 @@ jobs:
name: BinaryPatch
path: target/release/patcher.exe
if-no-files-found: error

- name: Save cache
uses: actions/cache/save@v4

- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
path: |
~/.cargo
~/.rustup
target
key: cargo-${{ hashFiles('**/Cargo.lock') }}
name: Binary Patch
make_latest: true
tag_name: latest
files: target/release/patcher.exe

0 comments on commit 877fddc

Please sign in to comment.