name: GitHub Pages on: push: branches: - main # Set a branch to deploy pull_request: jobs: deploy: runs-on: docker concurrency: group: ${{ github.workflow }}-${{ github.ref }} steps: - uses: actions/checkout@v4 with: submodules: false # Fetch Hugo themes (true OR recursive) fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod - name: Setup Hugo uses: https://github.com/peaceiris/actions-hugo@v2 with: hugo-version: '0.112.0' # extended: true - name: Build run: hugo --minify - name: Setup Go uses: actions/setup-go@v3 with: go-version: '1.20' - name: Use Go Action uses: https://git.keks.cloud/keksCloud/action-webpage@main - name: copy file via ssh password uses: https://github.com/appleboy/scp-action@v0.1.4 with: host: "static.keks.cloud" username: ${{ secrets.USERNAME }} key: ${{ secrets.KEY }} source: "public/*" target: "/var/www/keks.cloud/" strip_components: 1