Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
FernandoArteaga committed Feb 3, 2024
1 parent a79f7e7 commit 9574888
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 67 deletions.
16 changes: 16 additions & 0 deletions .github/actions/setup-runtime.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Setup Node.js and pnpm

runs:
using: "composite"
steps:
- name: "Setup pnpm"
uses: pnpm/action-setup@v2
id: pnpm-install
with:
version: 8
run_install: false
- name: "Setup Node"
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
91 changes: 24 additions & 67 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,83 +18,40 @@ concurrency:
env:
BUILD_PATH: "."

#jobs:
# build:
# name: "Build"
# runs-on: ubuntu-latest
# steps:
# - name: "Checkout"
# uses: actions/checkout@v4
# - name: "Setup pnpm"
# uses: pnpm/action-setup@v2
# with:
# version: 8
# run_install: false
# - name: "Setup Node"
# uses: actions/setup-node@v4
# with:
# node-version: "20"
# cache: 'pnpm'
# - name: "Get pnpm store directory"
# shell: bash
# run: |
# echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
# - name: "Setup pnpm cache"
# uses: actions/cache@v4
# with:
# path: ${{ env.STORE_PATH }}
# key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
# restore-keys: |
# ${{ runner.os }}-pnpm-store-
# - name: "Setup Pages"
# id: pages
# uses: actions/configure-pages@v4
# - name: "Install dependencies"
# run: pnpm install
# working-directory: ${{ env.BUILD_PATH }}
# - name: "Build with Astro"
# run: |
# pnpx astro build \
# --site "${{ steps.pages.outputs.origin }}" \
# --base "${{ steps.pages.outputs.base_path }}"
# working-directory: ${{ env.BUILD_PATH }}
# - name: "Upload artifact"
# uses: actions/upload-pages-artifact@v3
# with:
# path: ${{ env.BUILD_PATH }}/dist
#
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# needs: build
# runs-on: ubuntu-latest
# name: "Deploy"
# steps:
# - name: "Deploy to GitHub Pages"
# id: deployment
# uses: actions/deploy-pages@v4

jobs:
build:
name: "Build"
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
- name: "Checkout"
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v1
- name: "Setup runtime"
uses: ./.github/actions/setup-runtime
- name: "Setup Pages"
id: pages
uses: actions/configure-pages@v4
- name: "Install dependencies"
run: pnpm install
working-directory: ${{ env.BUILD_PATH }}
- run: |
echo origin: ${{ steps.pages.outputs.origin }}
echo base_path: ${{ steps.pages.outputs.base_path }}
- name: "Build with Astro"
run: pnpm run build
working-directory: ${{ env.BUILD_PATH }}
- name: "Upload artifact"
uses: actions/upload-pages-artifact@v3
with:
path: .
node-version: 20
package-manager: pnpm@8
path: ${{ env.BUILD_PATH }}/dist

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
needs: build
runs-on: ubuntu-latest
name: "Deploy"
steps:
- name: Deploy to GitHub Pages
- name: "Deploy to GitHub Pages"
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit 9574888

Please sign in to comment.