CoolFace
Apppublic

Hardeep/text-summarisation

sourceHugging Faceccupdated 4y agoView on Hugging Face
0likes
main.yml38 linesDownload Raw Back to workflows
1# This is a basic workflow to help you get started with Actions2 3name: Sync to Hugging Face4 5# Controls when the workflow will run6on:7  # Triggers the workflow on push or pull request events but only for the "main" branch8  push:9    branches: [ "main" ]10  pull_request:11    branches: [ "main" ]12 13  # Allows you to run this workflow manually from the Actions tab14  workflow_dispatch:15 16# A workflow run is made up of one or more jobs that can run sequentially or in parallel17jobs:18  sync-to-hub:19    runs-on: ubuntu-latest20 21    # Steps represent a sequence of tasks that will be executed as part of the job22    steps:23      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it24      - uses: actions/checkout@v225        with: 26          fetch-depth: 027      # Runs a single command using the runners shell28      - name: Add remote29        env:30          HF: ${{ secrets.HUGGINGFACE }}31        run: git remote add space https://Hardeep:$HF@huggingface.co/spaces/Hardeep/text-summarisation32      - name: Push to hub33        env:34          HF: ${{ secrets.HUGGINGFACE }}35        run: git push --force https://Hardeep:$HF@huggingface.co/spaces/Hardeep/text-summarisation main36          37          38