r2z Firefox Win32 #1070
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: r2z Firefox Win32 | |
on: | |
schedule: | |
- cron: '00 19 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4.1.1 | |
- 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-win32.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/extract-7z-action@v1.0 | |
with: | |
pathSource: ${{ env.PKGNAME }} | |
pathTarget: "FxTemp32" | |
- name: Move Core Directory | |
if: env.DIFF != 'None' | |
run: mv './FxTemp32/core' './core32' | |
- name: Make Portable | |
if: env.DIFF != 'None' | |
uses: edgarrc/action-7z@v1 | |
with: | |
args: 7z a -t7z -mx=9 ${{ env.FXZIPFILE }} ./core32/* | |
- name: Release | |
if: env.DIFF != 'None' | |
uses: xresloader/upload-to-github-release@v1.3.11 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "${{ env.FXZIPFILE }}" | |
draft: false | |
tag_name: 'fx-win32' | |
- name: Commit update file | |
if: env.DIFF != 'None' | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Firefox Win32 ${{ env.FXVERSION }} | |
push_options: '--force' | |
skip_dirty_check: false | |
skip_fetch: true | |
skip_checkout: true | |
disable_globbing: true | |
file_pattern: updates/r2zfx |