forked from electron/website
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 950 Bytes
/
push-main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: Push and publish main
on:
schedule:
# twice a day at midnight and noon
- cron: '0 0,12 * * *'
push:
branches:
- main
concurrency: publish
jobs:
# Make a reusable workflow
crowdin-upload:
name: Upload to Crowdin
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag: v4.1.2
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # tag: v4.0.2
with:
node-version: 20
- name: Install dependencies
uses: bahmutov/npm-install@237ded403e6012a48281f4572eab0c8eafe55b3f # tag: v1.10.1
- name: Upload sources to Crowdin
run: 'yarn i18n:upload'
env:
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
build-and-deploy:
uses: electron/website/.github/workflows/build-and-deploy.yml@main
with:
branch: main
secrets:
SAS: ${{ secrets.SAS }}