- file: Artifacts/api.json
- region: ap-northeast-2
- bucket: tizenfx-api-specs
- key: ${{ github.sha }}.json
+ repository: TizenAPI/tizenfx-api-specs
+ token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }}
+ path: .apispec
+
+ - name: Push to APISpec
+ working-directory: .apispec
+ run: |
+ git config --global user.name "TizenAPI-Bot"
+ git config --global user.email "tizenapi@samsung.net"
+ git checkout --orphan prep
+ gzip -c ../Artifacts/api.json > ${{ github.sha }}.json.gz
+ find . -name "*.json.gz" -type f -mtime +30 -delete
+ git add .
+ git commit -m "Update API spec"
+ git push -f origin HEAD:main