Create release instead of making PR
This commit is contained in:
39
.github/workflows/pr_compile_scripts.yml
vendored
39
.github/workflows/pr_compile_scripts.yml
vendored
@@ -1,10 +1,8 @@
|
|||||||
name: Generate Compiled Scripts Pull Request
|
name: Generate Compiled Scripts Pull Request
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
- push
|
||||||
branches: [master]
|
- pull_request
|
||||||
pull_request:
|
|
||||||
branches: [master]
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
windows_build:
|
windows_build:
|
||||||
@@ -24,25 +22,30 @@ jobs:
|
|||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Run Release Script
|
- name: Run Release Script
|
||||||
|
id: run_release
|
||||||
env:
|
env:
|
||||||
EXTRACT_KEY: ${{ secrets.EXTRACT_KEY }}
|
EXTRACT_KEY: ${{ secrets.EXTRACT_KEY }}
|
||||||
run: |
|
run: |
|
||||||
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/compile_higurashi_scripts/compile_higurashi_scripts.py
|
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/deploy_higurashi/deploy_higurashi.py
|
||||||
python compile_higurashi_scripts.py ${{ github.event.repository.name }}
|
python deploy_higurashi.py ${{ github.event.repository.name }}
|
||||||
rm compile_higurashi_scripts.py
|
rm deploy_higurashi.py
|
||||||
|
|
||||||
- name: Create Pull Request
|
# Publish a release
|
||||||
uses: peter-evans/create-pull-request@v3
|
- name: Release
|
||||||
if: ${{ github.event_name == 'push' }} # Only create pull requests from pushes, not from pull requests
|
uses: softprops/action-gh-release@v1
|
||||||
|
if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
|
||||||
with:
|
with:
|
||||||
commit-message: update compiled scripts
|
files: |
|
||||||
title: Update Compiled Scripts (github-actions)
|
output/*.zip
|
||||||
|
draft: true
|
||||||
|
name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above
|
||||||
body: |
|
body: |
|
||||||
This is an automatically generated pull request.
|
> [PUT INSTALL REQUIREMENTS HERE]. We recommend using [our installer](https://github.com/07th-mod/python-patcher/releases/latest).
|
||||||
|
|
||||||
This pull request compiles all the scripts in the `Update` folder into the `CompiledUpdateScripts` folder,
|
[PUT GENERAL DESCRIPTION HERE]
|
||||||
so the end-user does not need to compile it on their end.
|
|
||||||
|
|
||||||
You should accept this pull request just before releasing a patch. Please do not accept this pull request at other times,
|
# Changelog
|
||||||
as this will generate unnecessary commits.
|
|
||||||
branch: update-compiled-scripts
|
- [PUT CHANGELOG ITEMS HERE]
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|||||||
Reference in New Issue
Block a user