Skip to content

Commit

Permalink
ci: remove withastro/actions
Browse files Browse the repository at this point in the history
  • Loading branch information
torn4dom4n committed Dec 25, 2023
1 parent 7b8e015 commit ba57e3a
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@ on:
push:
branches: ['main']

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: 'pages'
cancel-in-progress: false
Expand All @@ -27,10 +23,26 @@ jobs:
- name: Checkout your repository using git
uses: actions/checkout@v4

- name: Install, build, and upload your site
uses: withastro/action@v1
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
cache-dependency-path: pnpm-lock.yaml

- name: Install dependencies
run: pnpm install

- name: Build with Astro
run: pnpm build

- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist

deploy:
environment:
Expand All @@ -41,4 +53,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v4

0 comments on commit ba57e3a

Please sign in to comment.