name: Deploy to UpYun on: push: branches: - main jobs: build: runs-on: ubuntu-latest steps: - name: Checkout Repository master branch uses: actions/checkout@v2 - name: Setup Hugo uses: peaceiris/actions-hugo@v2 with: hugo-version: '0.128.2' - name: Build static files run: hugo --minify --environment production - name: Deploy uses: her-cat/upyun-deployer@v1.0.3 with: bucket: ${{ secrets.UPYUN_BUCKET }} operator: ${{ secrets.UPYUN_OPERATOR_NAME }} password: ${{ secrets.UPYUN_OPERATOR_PWD }} dir: 'public' publish_dir: 'myblog'