1.3.4 and Replace grass with short grass #219
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Validate Biome Colors | |
run: bash ./.scripts/validate-biome-colors.sh | |
release: | |
runs-on: ubuntu-latest | |
needs: validate | |
if: github.repository == 'PolyhedralDev/TerraOverworldConfig' && github.event_name == 'push' | |
env: | |
repo_url: ${{ github.server_url }}/${{ github.repository }} | |
changelog: CHANGELOG.md | |
release_changelog: RELEASE_CHANGELOG.md | |
start_regex: "^## \\[Unreleased\\]" | |
end_regex: "^## " | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: '2' | |
- name: Check for version bump | |
run: sh ./.scripts/check-version-bump.sh | |
- name: Create artifacts | |
run: sh ./.scripts/pack.sh | |
- name: Grab release changelog | |
if: env.version-bumped == 'true' | |
run: sh ./.scripts/grab-release-changelog.sh | |
- name: Update changelog | |
if: env.version-bumped == 'true' | |
run: sh ./.scripts/update-changelog.sh | |
- name: Push changelog | |
if: env.version-bumped == 'true' | |
uses: EndBug/add-and-commit@v9 | |
with: | |
author_name: Polyhedral-Bot | |
author_email: [email protected] | |
message: Version ${{ env.version }} | |
tag: v${{ env.version }} -F ${{ env.release_changelog }} --cleanup=verbatim | |
add: CHANGELOG.md | |
- name: Release | |
if: env.version-bumped == 'true' | |
uses: softprops/action-gh-release@v1 | |
with: | |
tag_name: v${{ env.version }} | |
body_path: ${{ env.release_changelog }} | |
files: | | |
.artifacts/* | |
- name: Release latest | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
title: "Latest Build" | |
files: | | |
.artifacts/* | |
release-docs: | |
runs-on: ubuntu-latest | |
needs: release | |
env: | |
WIKI_DIRECTORY: .wiki # Contents of this directory get pushed to the wiki | |
WIKI_PARENT_REPOSITORY: ${{ github.repository }} # Where to publish to | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Create Biomes Wiki Page | |
run: bash ./.scripts/create-biomes-wiki-page.sh | |
- name: Upload Documentation to Wiki | |
run: sh ./.scripts/upload-to-wiki.sh | |
env: | |
LOGIN_NAME: Polyhedral-Bot | |
LOGIN_EMAIL: [email protected] | |
ACCESS_TOKEN: ${{ secrets.POLYBOT }} |