Skip to content

Commit

Permalink
Create release instead of making PR
Browse files Browse the repository at this point in the history
  • Loading branch information
drojf committed Jan 22, 2021
1 parent 899c797 commit ef9aa06
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/pr_compile_scripts.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: Generate Compiled Scripts Pull Request

on:
push:
branches: [master]
pull_request:
branches: [master]
- push
- pull_request

jobs:
windows_build:
Expand All @@ -24,25 +22,30 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Run Release Script
id: run_release
env:
EXTRACT_KEY: ${{ secrets.EXTRACT_KEY }}
run: |
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/compile_higurashi_scripts/compile_higurashi_scripts.py
python compile_higurashi_scripts.py ${{ github.event.repository.name }}
rm compile_higurashi_scripts.py
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/deploy_higurashi/deploy_higurashi.py
python deploy_higurashi.py ${{ github.event.repository.name }}
rm deploy_higurashi.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
if: ${{ github.event_name == 'push' }} # Only create pull requests from pushes, not from pull requests
# Publish a release
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
with:
commit-message: update compiled scripts
title: Update Compiled Scripts (github-actions)
files: |
output/*.zip
draft: true
name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above
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,
so the end-user does not need to compile it on their end.
[PUT GENERAL DESCRIPTION HERE]
You should accept this pull request just before releasing a patch. Please do not accept this pull request at other times,
as this will generate unnecessary commits.
branch: update-compiled-scripts
# Changelog
- [PUT CHANGELOG ITEMS HERE]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ef9aa06

Please sign in to comment.