name: build static site on: workflow_dispatch: push: pull_request: jobs: build: container: image: node:22-bookworm steps: - uses: actions/checkout@v4 with: fetch-depth: 1 - uses: actions/cache@v4 with: path: |- bin/ themes/ key: hugo-${{ runner.os }}-${{ hashFiles('Makefile', 'config.toml') }} restore-keys: | hugo-${{ runner.os }} hugo - name: make all run: | git submodule sync rm -rf themes/dot-hugo make all - name: Fake DNS name for development # TODO: remove this step after switching DNS records run: | echo '185.73.212.7 frostfs.info' >> /etc/hosts curl -v --head frostfs.info - name: Setup SSH environment # TODO: add deploy conditions env: SSH_AUTH_SOCK: /tmp/ssh_agent.socket run: | umask 0077 mkdir -p ~/.ssh/ ssh-keyscan frostfs.info >> ~/.ssh/known_hosts ssh-agent -a "$SSH_AUTH_SOCK" echo "${{ secrets.SSH_DEPLOY_KEY }}" > ~/.ssh/key stat ~/.ssh/key ssh-keygen -y -f ~/.ssh/key ssh-add ~/.ssh/key rm ~/.ssh/key - name: make deploy run: | ssh-add -L make deploy # TODO: add deploy conditions env: SSH_AUTH_SOCK: /tmp/ssh_agent.socket