Skip to content

Update upmsync.yml

Update upmsync.yml #20

Workflow file for this run

name: UPM Sync
on:
push:
branches:
- main
workflow_dispatch:
env:
base: https://dl.google.com/games/registry/unity/com.google.firebase.app-check/com.google.firebase.app-check
version: 12.4.1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Config
run: |
git config --local user.email "[email protected]"
git config --local user.name "game-workstore-bot"
- name: Download Package
run: |
rm -rf Staging
mkdir Staging
cd Staging
curl ${{ env.base }}-${{ env.version }}.tgz --output content.tgz
tar -xvzf content.tgz
rm content.tgz
ls
git add --a
git commit -m "Package Update ${{ env.version }}"
git push origin
- name: Cook UPM
run: |
ls Staging/package/
git subtree split -P Staging/package/ -b upm
git checkout upm
ls
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: upm
force: true