Skip to content

Commit

Permalink
Revert "make sure these steps run"
Browse files Browse the repository at this point in the history
This reverts commit 1976dee.

Revert "yet another fix for the github actions"

This reverts commit 5529517.

Revert "make sure CI to assemble release on 'v*' tag push or manually"

This reverts commit 8897769.
  • Loading branch information
majcosta committed Jan 7, 2025
1 parent 1976dee commit 7aa0e18
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,25 @@ jobs:
name: Set global variables
run: |
set -eux
all_languages="${{ inputs.build_all_languages }}"
assemble_release="${{ inputs.assemble_release }}"
repo="${{ github.repository }}"
is_tag="${{ startsWith(github.ref, 'refs/tags/v') }}"
if [ "$assemble_release" = "true" ] || { [ "$repo" = "1dot13/source" ] && [ "$is_tag" = "true" ]; }
full_release='${{ ( github.repository == '1dot13/source' && github.ref_name == 'master' ) || startsWith(github.ref, 'refs/tags/v') }}'
if [[ '${{ inputs.build_all_languages }}' == 'true' || ( '${{ inputs.build_all_languages }}' == '' && "$full_release" == 'true' ) ]]
then
full_release="true"
languages_json_array='["Chinese", "German", "English", "French", "Polish", "Italian", "Dutch", "Russian"]';
else
full_release="false"
# English + some other language for compilation testing
languages_json_array='["German", "English"]'
fi
if [ "$all_languages" = "true" ] || [ "$full_release" = "true" ]
echo "languages_json_array=$languages_json_array" >> $GITHUB_OUTPUT
if [[ '${{ inputs.assemble_release }}' == 'true' || ( '${{ inputs.assemble_release }}' == '' && "$full_release" == 'true' ) ]]
then
languages_json_array='["Chinese", "German", "English", "French", "Polish", "Italian", "Dutch", "Russian"]'
assemble_release='true'
else
# English + some other language for compilation testing
languages_json_array='["German", "English"]'
assemble_release='false'
fi
echo "languages_json_array=$languages_json_array" >> "$GITHUB_OUTPUT"
echo "assemble_release=$full_release" >> "$GITHUB_OUTPUT"
echo "assemble_release=$assemble_release" >> $GITHUB_OUTPUT
- name: Clone repos metadata
run: |
Expand Down Expand Up @@ -190,12 +186,14 @@ jobs:
merge-multiple: true

- name: Checkout Repo
if: github.ref == 'refs/heads/master'
uses: actions/checkout@v4
with:
path: source
fetch-depth: 1
sparse-checkout: 'README.md'
- name: Create latest pre-release
if: github.ref == 'refs/heads/master'
working-directory: source
run: |
gh release delete latest --cleanup-tag || true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build_language.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
assemble:
description: 'assemble full package'
required: true
default: false
default: true
type: boolean
continue-on-error:
description: 'allows a language to fail, used when building all languages'
Expand Down

0 comments on commit 7aa0e18

Please sign in to comment.