r2z Firefox Win64 #1007
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 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 |