chore: update version and one line #8
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
##################################################################################### | |
# WARNING # | |
##################################################################################### | |
# # | |
# This file is synchronised across all supportpal/addon-language-* repositories. # | |
# Be careful not to hardcode any paths, and only update it in the # | |
# supportpal/addon-language-english repository! # | |
# # | |
##################################################################################### | |
name: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set environment | |
run: | | |
ADDON_NAME="$(grep -rEho "^namespace Addons\\\\Languages\\\\([^\\\\]+)" Controllers/ | sed 's:.*\\::')" | |
ADDON_NAME_LOWER="$(echo $ADDON_NAME | awk '{print tolower($0)}')" | |
BASE_FILENAME="addon-$(echo $ADDON_NAME_LOWER)-${{ github.ref_name }}" | |
echo "ADDON_NAME=$(echo $ADDON_NAME)" >> $GITHUB_ENV | |
echo "ZIP_FILENAME=$(echo $BASE_FILENAME).zip" >> $GITHUB_ENV | |
echo "TAR_FILENAME=$(echo $BASE_FILENAME).tar.gz" >> $GITHUB_ENV | |
- name: Build Release | |
run: | | |
git archive --format=tar --prefix="${{ env.ADDON_NAME }}/" HEAD -o archive.tar | |
tar -xf archive.tar | |
rm -rf ${{ env.ADDON_NAME }}/.github/ | |
zip -r ${{ env.ZIP_FILENAME }} ${{ env.ADDON_NAME }} | |
tar -zcvf ${{ env.TAR_FILENAME }} ${{ env.ADDON_NAME }} | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
${{ env.ZIP_FILENAME }} | |
${{ env.TAR_FILENAME }} |