chore: remove old scons-based build system #6
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
name: Release Product Packager Nim Suite | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Mingw | |
uses: egor-tensin/setup-mingw@v2 | |
- name: Setup Nim Action | |
uses: jiro4989/setup-nim-action@v1 | |
with: | |
nim-version: '1.6.4' | |
- run: | | |
git clone -b '3.4' --single-branch https://github.com/godotengine/godot.git | |
nimble -y build | |
nimble -y build -d:mingw | |
- name: Rename and Compress files | |
# find . -type f ! -name "*.*" -exec mv {} {}.x86_64 \; | |
run: | | |
export TAG_VERSION="${GITHUB_REF#refs/*/}" | |
export ZIP_NAME="product_packager-$TAG_VERSION" | |
cd bin | |
zip -r "$ZIP_NAME-windows.zip" *.exe | |
find . -type f ! -name "*.*" | zip "$ZIP_NAME-linux.zip" -@ | |
- name: Generate Changelog | |
run: | | |
export TAG_VERSION="${GITHUB_REF#refs/*/}" | |
export TAG_MESSAGE=$(git tag -l --format='%(contents:subject)' $TAG_VERSION) | |
export COMMIT_SHA="${{ github.sha }}" | |
export FILE="${{ github.workspace }}-CHANGELOG.txt" | |
echo "# GDQuest Product Manager" > $FILE | |
echo "commit: $COMMIT_SHA" >> $FILE | |
echo "$TAG_VERSION: $TAG_MESSAGE" >> $FILE | |
echo "" >> $FILE | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
append_body: true | |
files: | | |
bin/*.zip | |
body_path: ${{ github.workspace }}-CHANGELOG.txt |