mirror of
https://github.com/bitcookies/winrar-keygen.git
synced 2026-05-06 10:09:28 +00:00
37 lines
1.1 KiB
YAML
37 lines
1.1 KiB
YAML
name: WinRAR Keygen with secrets
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
KEY_ENCODING:
|
|
type: string
|
|
description: License encoding ascii, ansi or utf8
|
|
default: 'utf8'
|
|
required: true
|
|
|
|
jobs:
|
|
keygen:
|
|
name: Generating License (${{ github.event.inputs.KEY_ENCODING }})
|
|
runs-on: windows-2022
|
|
env:
|
|
KEY_ENCODING: ${{ github.event.inputs.KEY_ENCODING }}
|
|
KEY_USERNAME: ${{ secrets.TEXT1 }}
|
|
KEY_LICENSE_NAME: ${{ secrets.TEXT2 }}
|
|
ZIP_PWD: ${{ secrets.PWD }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v6.0.2
|
|
|
|
- name: Generating License
|
|
shell: pwsh
|
|
run: |
|
|
bin/x64-Release/winrar-keygen.exe "${{ env.KEY_USERNAME }}" "${{ env.KEY_LICENSE_NAME }}" -e ${{ env.KEY_ENCODING }}
|
|
if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE }
|
|
7z a rarreg.7z rarreg.key -p"${{ env.ZIP_PWD }}"
|
|
|
|
- name: Uploading License
|
|
uses: actions/upload-artifact@v6.0.0
|
|
with:
|
|
name: rarreg_file_${{ env.KEY_ENCODING }}
|
|
path: rarreg.7z
|
|
if-no-files-found: error
|
|
retention-days: 1
|