Фидбэк: причины дизлайка (чипы) + цензура матерных комментариев #95
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: Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: true | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Enable and configure Pages | |
| uses: actions/configure-pages@v5 | |
| with: | |
| enablement: true | |
| - name: Collect static files | |
| run: | | |
| mkdir -p dist/en | |
| cp index.html og.png robots.txt sitemap.xml 404.html dist/ | |
| cp favicon.ico favicon.svg apple-touch-icon.png icon-192.png icon-512.png site.webmanifest dist/ | |
| cp en/index.html dist/en/ | |
| cp -r locks dist/ | |
| cp -r en/locks dist/en/ | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: dist | |
| - id: deployment | |
| uses: actions/deploy-pages@v4 | |
| - name: Set custom domain | |
| run: | | |
| curl -s -X PUT \ | |
| -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \ | |
| -H "Accept: application/vnd.github+json" \ | |
| https://api.github.com/repos/${{ github.repository }}/pages \ | |
| -d '{"cname":"unlockmyloot.com"}' || true |