Skip to content

Commit

Permalink
Matrix each language in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvNC committed Jul 12, 2024
1 parent 6f51e39 commit bf4a4aa
Showing 1 changed file with 37 additions and 14 deletions.
51 changes: 37 additions & 14 deletions .github/workflows/run-upload-release.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,38 @@
name: Run and Upload
name: Run and Upload Release

on:
workflow_dispatch:
push:
tags:
- 'v*'
on: [push, pull_request]

jobs:
run-and-upload:
runs-on: windows-latest
strategy:
matrix:
language:
[
'hu',
'eu',
'pt',
'ga',
'el',
'de',
'eo',
'ar',
'id',
'pl',
'cs',
'ca',
'sv',
'ru',
'nl',
'uk',
'en',
'ko',
'es',
'ja',
'zh',
'fr',
'it',
]

steps:
- name: Checkout Repository
Expand All @@ -22,13 +46,14 @@ jobs:
- name: Install Dependencies
run: bun install --frozen-lockfile

- name: Run Application
run: bun run start -a
- name: Run Application for ${{ matrix.language }}
run: bun run start -l ${{ matrix.language }} -d 2022-12-01

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
path: out/

release:
runs-on: windows-latest
if: startsWith(github.ref, 'refs/tags/v')
Expand All @@ -49,13 +74,11 @@ jobs:
run: bun run releasetable ${{ github.ref }}

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body_path: release.md
draft: true
release_name: Release ${{ github.ref }}
body: |
Release notes for ${{ github.ref }}
draft: false
prerelease: false

0 comments on commit bf4a4aa

Please sign in to comment.