🍱 add sea-eye to partners #40
This file contains 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 static content to 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 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
cache: pnpm | |
- name: Install dependencies | |
run: pnpm install | |
# - name: Install Playwright Browsers | |
# run: pnpm exec playwright install --with-deps | |
- name: Write secret files | |
run: | | |
echo "$ENV_FILE" > .env | |
echo "$SERVICE_ACCOUNT" > service-account.json | |
env: | |
ENV_FILE: ${{ secrets.ENV }} | |
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }} | |
- name: Build | |
run: pnpm run build | |
- name: Clean up after Tailwind | |
run: sed -i 's/@reference "\.\.\/assets\/style.css";//g' ./dist/_astro/*.css | |
- name: Delete secrets | |
run: rm .env service-account.json | |
# - name: Run Playwright tests | |
# run: pnpm run test | |
# - uses: actions/upload-artifact@v4 | |
# if: ${{ !cancelled() }} | |
# with: | |
# name: playwright-report | |
# path: playwright-report/ | |
# retention-days: 7 | |
- name: Add CNAME | |
run: echo real-o-mat.de > dist/CNAME | |
- name: Setup Pages | |
uses: actions/configure-pages@v4 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: './dist' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |