Skip to content

chore(master): πŸ”– release advanced_calculator 0.4.0 (#168) #298

chore(master): πŸ”– release advanced_calculator 0.4.0 (#168)

chore(master): πŸ”– release advanced_calculator 0.4.0 (#168) #298

Workflow file for this run

name: Release Please
on:
push:
branches:
- master
jobs:
release-please:
runs-on: ubuntu-latest
name: Release Please
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
paths_released: ${{ steps.release-please.outputs.paths_released }}
steps:
- name: Release Please
uses: google-github-actions/release-please-action@v4
id: release-please
with:
config-file: .release-please/release-please-config.json
manifest-file: .release-please/.release-please-manifest.json
- run: |
echo "${{ toJson(steps.release-please.outputs) }}"
echo "${{ steps.release-please.paths_released }}"
build:
runs-on: ubuntu-latest
name: Build
needs: release-please
steps:
- run: |
echo "${{ needs.release-please.outputs }}"
- name: Check Out
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
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 ${{ matrix.plugin }}
echo "name=$(ls *.mcdr)" >> $GITHUB_OUTPUT
- name: Upload
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release upload ${{ needs.release-please.outputs[format('{0}--tag_name', matrix.plugin)] }} ${{ steps.pack.outputs.name }}