Skip to content

Update locale/en from nullius-1.5.26 #42

Update locale/en from nullius-1.5.26

Update locale/en from nullius-1.5.26 #42

Workflow file for this run

name: Create release
on:
pull_request:
branches: [main]
types: [closed]
jobs:
Create-Release:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true && startsWith(github.head_ref, 'release-v')
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Configure git and gh CLI
uses: git-actions/set-user@v1
- name: Detect target version
id: version
run: |
NAME=nullius-ja
VERSION=$(basename ${{ github.head_ref}} | sed -e 's/release-v//')
echo "version=${VERSION}" >> "${GITHUB_OUTPUT}"
echo "tag=v${VERSION}" >> "${GITHUB_OUTPUT}"
echo "archive=${NAME}_${VERSION}.zip" >> "${GITHUB_OUTPUT}"
echo "prefix=${NAME}_${VERSION}/" >> "${GITHUB_OUTPUT}"
- name: Create a release on GitHub
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git tag "${{ steps.version.outputs.tag }}"
git push --tags
git archive --prefix "${{ steps.version.outputs.prefix }}" HEAD -o "${{ steps.version.outputs.archive }}"
sed -ne '1d; /^-\{99\}$/q; s/^ //p' < changelog.txt | \
gh release create "${{ steps.version.outputs.tag }}" -F=- -t "Release v${{ steps.version.outputs.version }}" "${{ steps.version.outputs.archive }}"
- name: Upload the MOD to the MOD portal
uses: ./.github/actions/upload
with:
mod_name: nullius-ja
mod_version: "${{ steps.version.outputs.version }}"
zip_name: "${{ steps.version.outputs.archive }}"
api_key: ${{ secrets.MOD_PORTAL_API_KEY }}