forked from PCSX2/pcsx2_patches
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 956 Bytes
/
pack_patches.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Pack patches
on: [push, pull_request]
jobs:
pack:
name: Pack patches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Create archives
run: |
7z a -r patches.zip ./patches/*
- name: Upload archives
uses: actions/upload-artifact@v3
with:
name: cheats
path: ./patches.zip
if-no-files-found: error
release:
needs: [pack]
name: Publish release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v3
- name: Create a new release
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: latest
prerelease: false
title: Latest Build
files: ./cheats/patches.zip