From 84d63e9975257c269f4302030e2885fb95833936 Mon Sep 17 00:00:00 2001 From: Stefan Vukovic Date: Thu, 23 May 2024 18:13:44 +0200 Subject: [PATCH] try testing release action --- .env.example | 2 +- .github/workflows/release.yml | 47 +++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/release.yml diff --git a/.env.example b/.env.example index 67723d8..96d254e 100755 --- a/.env.example +++ b/.env.example @@ -1,3 +1,3 @@ DEBUG_WORD=sehen DICT_NAME=abc #used as prefix, like abc-de-en.zip -MAX_MEMORY_MB=8192 \ No newline at end of file +MAX_MEMORY_MB=16384 \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..b06287a --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,47 @@ +name: Create a new release + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: '20' + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.9' + + - name: Create .env file + run: cp .env.example .env + + - name: Install jq + run: sudo apt-get install -y jq + + - name: Install gzip + run: sudo apt-get install -y gzip + + - name: Install npm dependencies + run: npm install + + - name: Run auto.sh script + run: ./auto.sh Albanian English + + - name: Release + uses: softprops/action-gh-release@v2 + with: + name: Test auto release + prerelease: true + generate_release_notes: true + files: | + data/language/sq/en/abc-sq-en.zip + data/language/sq/en/abc-sq-en-ipa.zip