Skip to content

Commit dc13011

Browse files
authored
Create merge.yml
1 parent ccaa7e8 commit dc13011

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

.github/workflows/merge.yml

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
3+
name: Merge
4+
5+
on:
6+
push:
7+
branches:
8+
- main
9+
10+
jobs:
11+
deploy_flatpak:
12+
name: Deploy Flatpak
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
arch: [x86_64, aarch64]
18+
# Don't fail the whole workflow if one architecture fails
19+
fail-fast: false
20+
21+
container:
22+
image: ghcr.io/elementary/flatpak-platform/runtime:8-${{ matrix.arch }}
23+
options: --privileged
24+
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
29+
- name: Set up QEMU for aarch64 emulation
30+
if: ${{ matrix.arch != 'x86_64' }}
31+
uses: docker/setup-qemu-action@v3
32+
with:
33+
platforms: arm64
34+
35+
- name: Build
36+
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
37+
with:
38+
bundle: AppGenerator.flatpak
39+
manifest-path: io.github.ecommunity.app-generator.yml
40+
run-tests: true
41+
repository-name: appcenter
42+
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
43+
cache-key: "flatpak-builder-${{ github.sha }}"
44+
branch: daily
45+
arch: ${{ matrix.arch }}
46+
47+
- name: Deploy
48+
uses: flatpak/flatpak-github-actions/flat-manager@v6
49+
with:
50+
repository: appcenter
51+
flat-manager-url: https://flatpak-api.elementary.io
52+
token: ${{ secrets.FLAT_MANAGER_TOKEN }}
53+
54+
gettext:
55+
name: Gettext
56+
runs-on: ubuntu-latest
57+
container:
58+
image: ghcr.io/elementary/flatpak-platform/runtime:8-x86_64
59+
options: --privileged
60+
61+
steps:
62+
- name: Install git, python3-git and jq
63+
run: |
64+
apt-get update
65+
apt-get install git jq python3-git -y
66+
67+
- name: Clone repository
68+
uses: actions/checkout@v4
69+
with:
70+
token: ${{ secrets.GIT_USER_TOKEN }}
71+
72+
- name: Configure Git
73+
run: |
74+
git config --global --add safe.directory "$GITHUB_WORKSPACE"
75+
- name: Update Translation Files
76+
uses: elementary/actions/gettext-flatpak@main
77+
with:
78+
manifest-path: 'io.elementary.iconbrowser.yml'
79+
env:
80+
GIT_USER_NAME: "elementaryBot"
81+
GIT_USER_EMAIL: "[email protected]"

0 commit comments

Comments
 (0)