dnscache: use nameservers from cli (remove node/proxy) #16
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deployment to GitHub Pages | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'site/**' | |
| - '.github/workflows/deploy-github-pages.yml' | |
| pull_request: | |
| paths: | |
| - 'site/**' | |
| - '.github/workflows/deploy-github-pages.yml' | |
| permissions: | |
| contents: write | |
| env: | |
| REPO_NAME: ${{ github.event.repository.name }} | |
| REPO_OWNER: ${{ github.repository_owner }} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 # Fetch all history for .GitInfo and .Lastmod | |
| - name: Setup Hugo | |
| uses: peaceiris/actions-hugo@v3 | |
| with: | |
| hugo-version: '0.125.5' | |
| extended: true | |
| - uses: actions/setup-node@v6 | |
| with: | |
| node-version: '20' | |
| check-latest: true | |
| - run: | | |
| npm init --yes | |
| npm install --save-dev autoprefixer postcss-cli | |
| working-directory: ./site | |
| - run: hugo --baseURL https://kindnet.es --minify | |
| working-directory: ./site | |
| - name: Deploy | |
| uses: peaceiris/actions-gh-pages@v4 | |
| if: ${{ github.ref == 'refs/heads/main' }} | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./site/public | |
| cname: kindnet.es |