From eaaa9ef1a8fea7ddebc20ce359558ac43f68c044 Mon Sep 17 00:00:00 2001 From: Guillermo Valdes Date: Mon, 28 Oct 2024 15:30:06 -0600 Subject: [PATCH] Ajustes menores --- .github/workflows/deploy.yml | 28 +++++++--------------------- app.yaml | 3 --- 2 files changed, 7 insertions(+), 24 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 01f3411..62c5388 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,36 +4,22 @@ on: push: branches: - main - # Allows you to run this workflow manually from the Actions tab on GitHub. - workflow_dispatch: - -# Allow this job to clone the repo and create a page deployment -permissions: - contents: read - pages: write - id-token: write jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout your repository using git - uses: actions/checkout@v4 - - name: Install, build, and upload your site - uses: withastro/action@v3 - with: - # path: . # The root location of your Astro project inside the repository. (optional) - node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional) - 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) - deploy: if: github.repository == 'PJECZ/pjecz-andromeda-astro' - needs: build runs-on: ubuntu-latest permissions: contents: "read" id-token: "write" steps: + - name: Checkout your repository using git + uses: actions/checkout@v4 + - name: Install, build, and upload your site + uses: withastro/action@v3 + with: + node-version: 20 + package-manager: pnpm@latest - name: Authenticate uses: "google-github-actions/auth@v1" with: diff --git a/app.yaml b/app.yaml index 129c6e1..d52d0e7 100644 --- a/app.yaml +++ b/app.yaml @@ -1,17 +1,14 @@ runtime: nodejs20 service: default handlers: - # Serve the root URL (/) with secure option - url: / static_files: dist/index.html upload: dist/index.html - # Serve CSS, JS, images, fonts, and other static assets - url: /(.+)\.(.+) static_files: dist/\1.\2 upload: dist/(.+)\.(.+) - # Serve specific pages based on their URL path (using index.html files) - url: /(.*) static_files: dist/\1/index.html