Skip to content

Commit

Permalink
Auto release on github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikk155 committed Apr 13, 2024
1 parent 7696787 commit 1347181
Show file tree
Hide file tree
Showing 56 changed files with 1,002 additions and 662 deletions.
40 changes: 0 additions & 40 deletions .github/workflows/AFKManager.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/AFKManager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: AFKManager

on:
push:
branches:
- main
paths:
- '.github/workflows/AFKManager.yaml'
- 'resources/AFKManager.json'
- 'scripts/mikk/*'
- 'scripts/plugins/AFKManager.*'

permissions:
contents: write
packages: write
pull-requests: write

env:
APP_NAME: AFKManager

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Installing Python
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Repack resources
run: python3 build.py ${{ env.APP_NAME }}

- name: Create Release
uses: xresloader/upload-to-github-release@v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "assets.zip"
default_release_body_path: CHANGELOG.md
overwrite: true
tags: true
draft: false
prerelease: false
tag_name: ${{ env.APP_NAME }}
branches: main
default_release_name: ${{ env.APP_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}
target_owner: Mikk155
target_repo: Sven-Co-op
40 changes: 0 additions & 40 deletions .github/workflows/AntiClip.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/AntiClip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: metamod AntiClip

on:
push:
branches:
- main
paths:
- '.github/workflows/AntiClip.yaml'
- 'resources/AntiClip.res'
- 'scripts/mikk/*'
- 'scripts/plugins/AntiClip.*'

permissions:
contents: write
packages: write
pull-requests: write

env:
APP_NAME: AntiClip

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Installing Python
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Repack resources
run: python3 build.py ${{ env.APP_NAME }}

- name: Create Release
uses: xresloader/upload-to-github-release@v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "assets.zip"
default_release_body_path: CHANGELOG.md
overwrite: true
tags: true
draft: false
prerelease: false
tag_name: ${{ env.APP_NAME }}
branches: main
default_release_name: ${{ env.APP_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}
target_owner: Mikk155
target_repo: Sven-Co-op
40 changes: 0 additions & 40 deletions .github/workflows/CrashReporter.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/CrashReporter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CrashReporter

on:
push:
branches:
- main
paths:
- '.github/workflows/CrashReporter.yaml'
- 'resources/CrashReporter.res'
- 'scripts/mikk/*'
- 'scripts/plugins/CrashReporter.*'

permissions:
contents: write
packages: write
pull-requests: write

env:
APP_NAME: CrashReporter

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Installing Python
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Repack resources
run: python3 build.py ${{ env.APP_NAME }}

- name: Create Release
uses: xresloader/upload-to-github-release@v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "assets.zip"
default_release_body_path: CHANGELOG.md
overwrite: true
tags: true
draft: false
prerelease: false
tag_name: ${{ env.APP_NAME }}
branches: main
default_release_name: ${{ env.APP_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}
target_owner: Mikk155
target_repo: Sven-Co-op
40 changes: 0 additions & 40 deletions .github/workflows/FastRestart.yaml

This file was deleted.

55 changes: 55 additions & 0 deletions .github/workflows/FastRestart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: FastRestart

on:
push:
branches:
- main
paths:
- '.github/workflows/FastRestart.yaml'
- 'resources/FastRestart.res'
- 'scripts/mikk/*'
- 'scripts/plugins/FastRestart.*'

permissions:
contents: write
packages: write
pull-requests: write

env:
APP_NAME: FastRestart

jobs:

build:
name: Build
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Installing Python
run: |
pip install --upgrade pip
pip install -r requirements.txt
- name: Repack resources
run: python3 build.py ${{ env.APP_NAME }}

- name: Create Release
uses: xresloader/upload-to-github-release@v1.5.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "assets.zip"
default_release_body_path: CHANGELOG.md
overwrite: true
tags: true
draft: false
prerelease: false
tag_name: ${{ env.APP_NAME }}
branches: main
default_release_name: ${{ env.APP_NAME }}
token: ${{ secrets.GITHUB_TOKEN }}
target_owner: Mikk155
target_repo: Sven-Co-op
Loading

0 comments on commit 1347181

Please sign in to comment.