Skip to content

Commit

Permalink
.deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
illyrius666 committed May 25, 2024
1 parent 85d4a6c commit 1ee586e
Show file tree
Hide file tree
Showing 4,395 changed files with 6 additions and 16 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
22 changes: 6 additions & 16 deletions .github/workflows/sten_ci_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,44 +3,34 @@ run-name: "Sten's CI/CD"

on:
push:
paths:
- "illyria/**"

jobs:
release:
name: Release
if: contains(github.event.head_commit.message, '.deploy')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
version: [3.12]
runs-on: ubuntu-latest
steps:
- id: checkout
name: Checkout
uses: actions/checkout@main

- id: get_version
name: Get Version
run: |
VERSION=$(jq -r '.version.name' Illyria/pack.mcmeta)
echo "VERSION=${VERSION}" >> $GITHUB_ENV
run: echo "VERSION=$(jq -r '.version.name' Illyria/pack.mcmeta)" >> $GITHUB_ENV
shell: bash

- id: create_zip
name: Create Zip File
run: zip -r "Illyria_v${{ env.VERSION }}.zip" Illyria/assets Illyria/pack.mcmeta Illyria/pack.png
shell: bash

- id: create_tag
name: Create & Push Tag
run: echo "TAG=${{ env.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_v${{ env.TAG }}.zip
tag_name: ${{ env.VERSION }}
files: Illyria_v${{ env.VERSION }}.zip
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit 1ee586e

Please sign in to comment.