diff --git a/.github/workflows/pr_compile_scripts.yml b/.github/workflows/pr_compile_scripts.yml index c4322d3..13ce313 100644 --- a/.github/workflows/pr_compile_scripts.yml +++ b/.github/workflows/pr_compile_scripts.yml @@ -1,10 +1,8 @@ name: Generate Compiled Scripts Pull Request on: - push: - branches: [master] - pull_request: - branches: [master] + - push + - pull_request jobs: windows_build: @@ -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 }}