winrar-keygen/.github/workflows/action.yml
bitcookies b957f7afe8 Add Github Actions with secrets
Add Github Actions with secrets @quyentruong
2022-04-24 14:46:09 +08:00

40 lines
No EOL
898 B
YAML

name: WinRAR Keygen
on:
push:
branches: [ master ]
paths:
- 'keygen/*.json'
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2.4.0
- name: Get key text1
id: text1
uses: notiz-dev/github-action-json-property@release
with:
path: 'keygen/info.json'
prop_path: 'text1'
- name: Get key text2
id: text2
uses: notiz-dev/github-action-json-property@release
with:
path: 'keygen/info.json'
prop_path: 'text2'
- name: Generate key
shell: powershell
run: bin/x64-Release/winrar-keygen.exe "${{steps.text1.outputs.prop}}" "${{steps.text2.outputs.prop}}" | out-file -encoding ascii rarreg.key
- name: Upload key
uses: actions/upload-artifact@v2.3.1
with:
name: rarreg_file
path: rarreg.key
retention-days: 90