Skip to content

Sten's CI/CD

Sten's CI/CD #6

Workflow file for this run

name: Sten's CI/CD
run-name: "Sten's CI/CD"
on:
push:
branches: [main]
jobs:
release:
name: Release
if: contains(github.event.head_commit.message, '.deploy')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
version: [3.12]
steps:
- id: checkout
name: Checkout
uses: actions/checkout@main
- id: create_zip
name: Create Zip File
run: |
cd Illyria
zip -r ../Illyria.zip assets pack.mcmeta pack.png
shell: bash
- id: create_tag
name: Create & Push Tag
run: |
VERSION=$(jq -r '.version.name' Illyria/pack.mcmeta)
echo "TAG=$VERSION" >> $GITHUB_ENV
shell: bash
- id: create_release
name: Create Release
uses: softprops/action-gh-release@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG: ${{ env.TAG }}
with:
tag_name: ${{ env.TAG }}
files: Illyria.zip