Wowie what a gay little website for my gay little self aria.coffee
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

ci: migrate deployment from Cloudflare Pages to GitHub Pages

aria 865047fb ae21de87

+51 -32
+51 -32
.github/astro.yml
··· 7 7 on: 8 8 # Runs on pushes targeting the default branch 9 9 push: 10 - branches: [main] 10 + branches: ["main"] 11 11 12 12 # Allows you to run this workflow manually from the Actions tab 13 13 workflow_dispatch: ··· 35 35 steps: 36 36 - name: Checkout 37 37 uses: actions/checkout@v4 38 - 39 - # - name: Install pnpm 40 - # uses: pnpm/action-setup@v4 41 - # with: 42 - # version: 10 43 - 44 - # - name: Install Node.js 45 - # uses: actions/setup-node@v4 46 - # with: 47 - # node-version: 24 48 - # cache: 'pnpm' 49 - 50 - # - run: pnpm install 51 - 52 - # - name: Build website 53 - # run: pnpm run build-action 54 - 55 - - name: Install, build, and upload your site 56 - uses: withastro/action@v5 38 + - name: Detect package manager 39 + id: detect-package-manager 40 + run: | 41 + if [ -f "${{ github.workspace }}/yarn.lock" ]; then 42 + echo "manager=yarn" >> $GITHUB_OUTPUT 43 + echo "command=install" >> $GITHUB_OUTPUT 44 + echo "runner=yarn" >> $GITHUB_OUTPUT 45 + echo "lockfile=yarn.lock" >> $GITHUB_OUTPUT 46 + exit 0 47 + elif [ -f "${{ github.workspace }}/package.json" ]; then 48 + echo "manager=npm" >> $GITHUB_OUTPUT 49 + echo "command=ci" >> $GITHUB_OUTPUT 50 + echo "runner=npx --no-install" >> $GITHUB_OUTPUT 51 + echo "lockfile=package-lock.json" >> $GITHUB_OUTPUT 52 + exit 0 53 + else 54 + echo "Unable to determine package manager" 55 + exit 1 56 + fi 57 + - name: Setup Node 58 + uses: actions/setup-node@v4 57 59 with: 58 - # path: . # The root location of your Astro project inside the repository. (optional) 59 - node-version: 24 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) 60 - package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional) 61 - out-dir: dist 62 - 63 - - name: Publish to Cloudflare Pages 64 - uses: cloudflare/pages-action@1 60 + node-version: "24" 61 + cache: ${{ steps.detect-package-manager.outputs.manager }} 62 + cache-dependency-path: ${{ env.BUILD_PATH }}/${{ steps.detect-package-manager.outputs.lockfile }} 63 + - name: Setup Pages 64 + id: pages 65 + uses: actions/configure-pages@v5 66 + - name: Install dependencies 67 + run: ${{ steps.detect-package-manager.outputs.manager }} ${{ steps.detect-package-manager.outputs.command }} 68 + working-directory: ${{ env.BUILD_PATH }} 69 + - name: Build with Astro 70 + run: | 71 + ${{ steps.detect-package-manager.outputs.runner }} astro build \ 72 + --site "${{ steps.pages.outputs.origin }}" \ 73 + --base "${{ steps.pages.outputs.base_path }}" 74 + working-directory: ${{ env.BUILD_PATH }} 75 + - name: Upload artifact 76 + uses: actions/upload-pages-artifact@v3 65 77 with: 66 - apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} 67 - accountId: 2912be6a535e3b3689c79b309484b433 68 - projectName: aria-dot-coffee 69 - directory: ./dist 70 - gitHubToken: ${{ secrets.GITHUB_TOKEN }} 78 + path: ${{ env.BUILD_PATH }}/dist 71 79 80 + deploy: 81 + environment: 82 + name: github-pages 83 + url: ${{ steps.deployment.outputs.page_url }} 84 + needs: build 85 + runs-on: ubuntu-latest 86 + name: Deploy 87 + steps: 88 + - name: Deploy to GitHub Pages 89 + id: deployment 90 + uses: actions/deploy-pages@v4