うみゅ
Update deploy.yml
d8f6e54 unverified
raw
history blame
691 Bytes
# このワークフローは、git pushコマンドを使用してデプロイを行います。
# SettingsタブのSecrets and variables > Actions > Repository secretsに変数を設定してください。
name: "Deploy"
on:
push:
branches: [ "main" ]
# Actionsタブからワークフローの手動実行を許可します。
workflow_dispatch:
jobs:
sync-to-hub:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- name: Push to hub
run: git push --force https://${{ secrets.HF_USER_NAME }}:${{ secrets.HF_TOKEN }}@${{ secrets.HF_SPACE_URL }} main