extract #14
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: extract | |
on: | |
repository_dispatch: | |
types: [extract] | |
workflow_dispatch: | |
inputs: | |
name: | |
description: 'Description' | |
required: false | |
jobs: | |
build: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
python-version: [ 3.8 ] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Update pip | |
run: | | |
python -m pip install --upgrade pip | |
- name: Install regex | |
run: | | |
pip install regex | |
- name: Install boto3 | |
run: | | |
pip install boto3 | |
- name: Install requests | |
run: | | |
pip install requests | |
- name: Get steamcmd | |
run: | | |
curl https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip --output steamcmd.zip | |
Expand-Archive -Path steamcmd.zip | |
- name: Set credentials | |
run: | | |
python download_credentials.py | |
env: | |
AWS_S3_ACCESS_KEY: ${{ secrets.AWS_S3_ACCESS_KEY }} | |
AWS_S3_SECRET_ACCESS_KEY: ${{ secrets.AWS_S3_SECRET_ACCESS_KEY }} | |
- name: uploading steam workshop | |
run: | | |
mkdir tmp | |
cd tmp | |
mkdir game | |
cd .. | |
cd steamcmd | |
steamcmd.exe -dev -textmode -ignoredxsupportcfg +force_install_dir "../tmp/game" +login %STEAM_LOGIN_NAME% +app_update 236850 validate +quit | |
env: | |
STEAM_LOGIN_NAME: ${{ secrets.STEAM_LOGIN_NAME }} | |
shell: cmd | |
continue-on-error: true | |
- name: check | |
run: | | |
cd tmp | |
dir | |
cd game | |
dir | |
shell: cmd | |
- name: Extract files | |
run: | | |
python extract.py | |
env: | |
PARATRANZ_SECRET: ${{ secrets.PARATRANZ_SECRET }} | |
RUN_NUMBER: ${{ github.run_number }} | |
- name: push translation | |
run: | | |
git config --global user.email "matanki.saito@gmail.com" | |
git config --global user.name "matanki.saito" | |
git config --global url."https://${{ secrets.GITHUB_TOKEN }}:x-oauth-basic@github.com/".insteadOf "https://github.com/" | |
git add extract | |
git commit -m "Extract files from game [ci skip]" | |
git push origin HEAD:main | |
shell: cmd | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token |