Skip to content

chore(master): πŸ”– release info 0.2.1 (#242) #408

chore(master): πŸ”– release info 0.2.1 (#242)

chore(master): πŸ”– release info 0.2.1 (#242) #408

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
name: Release Please
outputs:
releases_created: ${{ steps.release-please.outputs.releases_created }}
tag_name: ${{ steps.release-please.outputs[format('{0}--tag_name', steps.get-path.outputs.path)] }}
path: ${{ steps.get-path.outputs.path }}
steps:
- name: Release Please
uses: googleapis/release-please-action@v4
id: release-please
with:
config-file: .release-please/release-please-config.json
manifest-file: .release-please/.release-please-manifest.json
- name: Get Path
id: get-path
if: ${{ steps.release-please.outputs.releases_created == 'true' }}
run: |
echo "path=${{ fromJson(steps.release-please.outputs.paths_released)[0] }}" >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
name: Build
needs: release-please
if: ${{ needs.release-please.outputs.releases_created == 'true' }}
steps:
- name: Check Out
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install mcdreforged
- name: Pack
id: pack
run: |
mcdreforged pack --ignore-patterns __pycache__ -i ${{ needs.release-please.outputs.path }}
echo "name=$(ls *.mcdr)" >> $GITHUB_OUTPUT
- name: Upload
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ needs.release-please.outputs.tag_name }} ${{ steps.pack.outputs.name }}