Fix hideout leader text skipping lines. #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Nightly Build & Pre-release | |
name: "Nightly" | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: | |
# Uncomment to enable scheduled runs, if desired: | |
# schedule: | |
# - cron: '0 5 * * *' | |
env: | |
NIGHTLY_TAG: "v3.2.0-beta" | |
NIGHTLY_NAME: "3.2.0-beta" | |
NIGHTLY_BODY: | | |
This is the current Polished Crystal 3.2.0 *beta* release. The assets all have an 8-character "commit hash" at the end to identify the exact code they're built from. | |
The **.gbc** assets are ROMs. If you just want to play the game, download one (regular, `-faithful` which omits some non-canon changes, or `noir` which is in grayscale) and load it in [BGB](https://bgb.bircd.org/), [mGBA](https://mgba.io/), [Gambatte](https://github.com/sinamas/gambatte), or another accurate Game Boy Color emulator. (***Do not use VBA*** or VBA-M.) | |
The **.sym** assets are "symbol files". They're useful for debugging, or for [discovering cheat codes](https://github.com/pret/pokecrystal/wiki/Discovering-GameShark-cheat-codes), although cheats are *not* officially supported and may cause bugs or crashes. (Do ***not*** ask the developers for cheat codes.) | |
The **.patch** assets are 3DS Virtual Console patches to enable trading and battling over Wi-Fi. You can bundle the .gbc and corresponding .patch into a playable .cia file using [poke-cia](https://github.com/vulcandth/poke-cia). | |
The **polishedcrystal** assets are ROMs and symbol files with extra features to help debug the game. Do ***not*** download these to just play with; use them to help the developers diagnose and fix bugs, or create new features. | |
jobs: | |
build: | |
name: "Nightly" | |
uses: Rangi42/polishedcrystal/.github/workflows/build.yml@master | |
release: | |
name: "Nightly / Release" | |
# Only proceed with the release job if this is the official repository (not a fork) | |
if: ${{ github.repository_owner == 'Rangi42' }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
# SET ENVIRONMENT VARIABLES | |
- id: set-env-var | |
name: "Set environment variables" | |
run: | | |
echo "SHORT_SHA=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV | |
# INSTALL DEPENDENCIES | |
- id: apt-get-depends | |
name: "Install dependencies" | |
run: | | |
sudo apt-get update | |
sudo apt-get install bison gcc git make -y; | |
# CHECKOUT REPOSITORY | |
- id: checkout-polishedcrystal | |
name: "Checkout Rangi42/polishedcrystal" | |
uses: actions/checkout@v4 | |
# DOWNLOAD ALL BUILD ARTIFACTS | |
- id: download-polishedcrystal | |
name: "Download polishedcrystal" | |
uses: actions/[email protected] | |
with: | |
name: "polishedcrystal" | |
path: "./build" | |
- id: download-polishedcrystal-faithful | |
name: "Download polishedcrystal-faithful" | |
uses: actions/[email protected] | |
with: | |
name: "polishedcrystal-faithful" | |
path: "./build" | |
- id: download-polisheddebug | |
name: "Download polisheddebug" | |
uses: actions/[email protected] | |
with: | |
name: "polisheddebug" | |
path: "./build" | |
- id: download-polisheddebug-faithful | |
name: "Download polisheddebug-faithful" | |
uses: actions/[email protected] | |
with: | |
name: "polisheddebug-faithful" | |
path: "./build" | |
# DELETE OLD RELEASE | |
- name: Delete old release | |
id: delete_release | |
uses: cb80/delrel@latest | |
with: | |
tag: ${{ env.NIGHTLY_TAG }} | |
# ADVANCE NIGHTLY TAG TO MASTER | |
- name: Advance nightly tag to master | |
run: | | |
git tag ${{ env.NIGHTLY_TAG }} -f | |
git push --tags -f "https://Rangi42:[email protected]/Rangi42/polishedcrystal.git" | |
# CREATE NEW RELEASE | |
- name: Create new release | |
id: create_release | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.NIGHTLY_TAG }} | |
name: ${{ env.NIGHTLY_NAME }} | |
body: ${{ env.NIGHTLY_BODY }} | |
draft: false | |
prerelease: true | |
# UPLOAD POLISHED CRYSTAL ASSETS | |
- name: Upload regular assets | |
id: upload | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.NIGHTLY_TAG }} | |
files: | | |
./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.gbc | |
./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.patch | |
./build/polishedcrystal-3.2.0-beta-${{ env.SHORT_SHA }}.sym | |
# UPLOAD FAITHFUL ASSETS | |
- name: Upload faithful assets | |
id: upload-faithful | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.NIGHTLY_TAG }} | |
files: | | |
./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.gbc | |
./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.patch | |
./build/polishedcrystal-faithful-3.2.0-beta-${{ env.SHORT_SHA }}.sym | |
# UPLOAD DEBUG ASSETS | |
- name: Upload debug assets | |
id: upload-debug | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.NIGHTLY_TAG }} | |
files: | | |
./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc | |
./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch | |
./build/polishedcrystal-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym | |
# UPLOAD FAITHFUL DEBUG ASSETS | |
- name: Upload faithful debug assets | |
id: upload-faithful-debug | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: ${{ env.NIGHTLY_TAG }} | |
files: | | |
./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.gbc | |
./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.patch | |
./build/polishedcrystal-faithful-debug-3.2.0-beta-${{ env.SHORT_SHA }}.sym |