-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (60 loc) · 1.82 KB
/
r2zfx_win64.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: r2z Firefox Win64
on:
schedule:
- cron: '00 19 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Setup Python Environment
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Requirements
run: pip install -r r2z-mzla-requirements.txt
- name: r2z-Pre
run: python r2zfx-win64.py
- name: Check Vars
if: env.DIFF != 'None'
run: |
echo ${{ env.CHANNEL }}
echo ${{ env.PKGNAME }}
echo ${{ env.FXVERSION }}
echo ${{ env.FXZIPFILE }}
- name: Unzip Executable
if: env.DIFF != 'None'
uses: DuckSoft/[email protected]
with:
pathSource: ${{ env.PKGNAME }}
pathTarget: "FxTemp64"
- name: Move Core Directory
if: env.DIFF != 'None'
run: mv './FxTemp64/core' './core64'
- name: Make Portable
if: env.DIFF != 'None'
uses: edgarrc/action-7z@v1
with:
args: 7z a -t7z -mx=9 ${{ env.FXZIPFILE }} ./core64/*
- name: Release
if: env.DIFF != 'None'
uses: xresloader/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "${{ env.FXZIPFILE }}"
draft: false
tag_name: 'fx-win64'
- name: Commit update file
if: env.DIFF != 'None'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Firefox Win64 ${{ env.FXVERSION }}
push_options: '--force'
skip_dirty_check: false
skip_fetch: true
skip_checkout: true
disable_globbing: true
file_pattern: updates/r2zfx-64