Skip to content

Commit

Permalink
Merge pull request #4 from guivaloz/guivaloz/ajustes-menores
Browse files Browse the repository at this point in the history
Ajustes menores
  • Loading branch information
guivaloz authored Oct 28, 2024
2 parents c5663bc + eaaa9ef commit 24c50ca
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 24 deletions.
28 changes: 7 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
3 changes: 0 additions & 3 deletions app.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 24c50ca

Please sign in to comment.