Skip to content

Commit

Permalink
Update create_realease.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxM1211 committed Dec 8, 2023
1 parent 7c84894 commit ab8e69b
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/create_realease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,39 +107,24 @@ jobs:
runs-on: ubuntu-latest
needs: get_context_info
if: needs.get_context_info.outputs.NEW_COMMIT_COUNT_LIVE > 0
permissions: write-all
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
ref: ${{ needs.get_context_info.outputs.COMMIT_LIVE }}

- name: Create ZIP For LIVE
run: |
sudo timedatectl set-timezone Europe/Berlin
mkdir release
cp "live/user.cfg" "release"
mkdir -p "release/data/Localization/german_(germany)"
cp "live/global.ini" "release/data/Localization/german_(germany)/"
cd release
echo "${{ vars.VERSION_FILE_TEXT_LIVE }} ${{ needs.get_context_info.outputs.RELEASE_TITLE_LIVE }} ${{ needs.get_context_info.outputs.DATE }} - ${{ needs.get_context_info.outputs.TIME }} Uhr" >> Version.txt
zip -r -9 "../${{ vars.ZIP_NAME_LIVE }}" *
- name: Create Release For LIVE
uses: ncipollo/release-action@v1.13.0
with:
tag: ${{ inputs.tag || needs.get_context_info.outputs.DATE_REV }}-LIVE
commit: ${{ needs.get_context_info.outputs.COMMIT_LIVE }}
name: ${{ needs.get_context_info.outputs.RELEASE_TITLE_LIVE }}
body: ${{ vars.RELEASE_BODY_LIVE }}
artifacts: ${{ vars.ZIP_NAME_LIVE }}

ptu_release: # runs only when ptu/global.ini was changed in the last 24 hours
name: Create PTU Release
runs-on: ubuntu-latest
needs: [get_context_info, live_release]
if: always() && (vars.TRIGGER_PTU_RELEASE == 1) && (needs.get_context_info.outputs.NEW_COMMIT_COUNT_PTU > 0)
permissions: write-all
permissions:
contents: write
steps:
- name: Checkout Code
uses: actions/checkout@v4
Expand Down

0 comments on commit ab8e69b

Please sign in to comment.